[pmwiki-users] nested span tag markup (solved)

jens at quefaire.de jens at quefaire.de
Fri Oct 18 23:35:47 CDT 2013


Hi Petko,

thanks a lot! Your code does the trick! This little markup comes in  
handy when you need to implement microformats.

Petko Yotov <5ko at 5ko.fr> wrote:

>  Markup('span', 'inline', '/\\(:span +(\\s?.*?):\\)/ie',
>    '"<span ".PQA(PSS("$1")).">"');
>  Markup('spanend', 'inline', '/\\(:span(end)?:\\)/i', '</span>');
>
> Then in a wiki page, use
>  (:span title="this is a tooltip" style="color:red;":)red text(:span:)
>  (:span title="Tooltip":)some (:span style="color:red;":)red(:span:)  
> text(:span:)

Regards
Jens




More information about the pmwiki-users mailing list