[pmwiki-users] Frustrated newbie: T_STRING?

Patrick R. Michaud pmichaud at pobox.com
Thu May 11 15:21:12 CDT 2006


Jo writes:
> or turn them into proper remark form ("comments") so that PHP will 
> ignore them:
> 
>    Markup("'~", "inline", "/'~(.*?)~'/", "<i>$1</i>");     # ~italic~
>    Markup("'*", "inline", "/'\\*(.*?)\\*'/", "<b>$1</b>"); # *bold*
>
> (The latter could also have been
> 
>    Markup("'~", "inline", "/'~(.*?)~'/", "<i>$1</i>");     # '~italic~'
>    Markup("'*", "inline", "/'\\*(.*?)\\*'/", "<b>$1</b>"); # '*bold*'
> 
> but I think the unquoted form is more appropriate.)

Actually, the quoted form is probably more appropriate, since 
the markup includes the quotes.

Pm




More information about the pmwiki-users mailing list