<div class="gmail_quote">On 25 January 2010 06:05, Petko Yotov <span dir="ltr"><<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Sunday 24 January 2010 15:04:05, Walter Keller wrote :<br>
<div class="im">> Markup('mRed', '>^>><<', '/{mRed\+}/', '>>color=red<<');<br>
> then then the formatting is not honoured, just the text expanded to<br>
> <<color ....<br>
> To make it work you need the clumsy definition<br>
> Markup('mBlue', '>^>><<', '/{mBlue\+}/', '&gt;&gt;color=blue&lt;&lt;');<br>
><br>
> This is neither intuitive nor documented! It took me quite a time to<br>
> find out. At least it would also work for text variables.<br>
<br>
</div>Feel free to document it on <a href="http://pmwiki.org" target="_blank">pmwiki.org</a> on the pages where you think it should<br>
be documented -- this may be helpful to other users. Thanks in advance.<br>
<div class="im"><br>
> Could you fix pmWiki, such that '>>color=red<<' would work?<br>
<br>
</div>No. PmWiki converts the wiki-text to HTML which uses a lot the characters <<br>
and >. In order not to mess with what it already processed to HTML, PmWiki<br>
converts those characters < and > from the wiki source to the entities &lt;<br>
and &gt;, and uses them when the page markup is processed. So it is correct,<br>
if you define new markup rules containing < and >, which are not native HTML<br>
but should be re-processed by PmWiki, you should use &lt; and &gt;.<br>
<br>
Thanks,<br>
<font color="#888888">Petko<br>
</font><br>
P.S. If your use of the {mBlue} markup is really as simple as your example,<br>
you know you can use the built-in %red% and %blue% command to change the text<br>
to red and to blue.<br>
<div><div></div><div class="h5"></div></div></blockquote></div><br>
<div>Possibly this is related to <a href="http://www.pmwiki.org/wiki/PITS/00962">http://www.pmwiki.org/wiki/PITS/00962</a></div>