Re: [pmwiki-users] styles in customMarkup
On 25 January 2010 06:05, Petko Yotov 5...@5ko.fr wrote: On Sunday 24 January 2010 15:04:05, Walter Keller wrote : Markup('mRed', '^', '/{mRed\+}/', 'color=red'); then then the formatting is not honoured, just the text expanded to color To make it work you need the clumsy definition Markup('mBlue', '^', '/{mBlue\+}/', 'gt;gt;color=bluelt;lt;'); This is neither intuitive nor documented! It took me quite a time to find out. At least it would also work for text variables. Feel free to document it on pmwiki.org on the pages where you think it should be documented -- this may be helpful to other users. Thanks in advance. Could you fix pmWiki, such that 'color=red' would work? No. PmWiki converts the wiki-text to HTML which uses a lot the characters and . In order not to mess with what it already processed to HTML, PmWiki converts those characters and from the wiki source to the entities lt; and gt;, and uses them when the page markup is processed. So it is correct, if you define new markup rules containing and , which are not native HTML but should be re-processed by PmWiki, you should use lt; and gt;. Thanks, Petko P.S. If your use of the {mBlue} markup is really as simple as your example, you know you can use the built-in %red% and %blue% command to change the text to red and to blue. Possibly this is related to http://www.pmwiki.org/wiki/PITS/00962 ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
[pmwiki-users] styles in customMarkup
if you define a style in a text variable as (:vRed:color=red:) you can use is at as expected in wiki text: {$:vRed} red text however, if you do the same with custom markup Markup('mRed', '^', '/{mRed\+}/', 'color=red'); then then the formatting is not honoured, just the text expanded to color To make it work you need the clumsy definition Markup('mBlue', '^', '/{mBlue\+}/', 'gt;gt;color=bluelt;lt;'); see http://wlkl.ch/wiki/index.php?n=My.Test2 This is neither intuitive nor documented! It took me quite a time to find out. At least it would also work for text variables. Could you fix pmWiki, such that 'color=red' would work? thanks a lot Walter ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
[pmwiki-users] styles in customMarkup
if you define a style in a text variable as (:vRed:color=red:) you can use is at as expected in wiki text: {$:vRed} red text however, if you do the same with custom markup Markup('mRed', '^', '/{mRed\+}/', 'color=red'); then then the formatting is not honoured, just the text expanded to color To make it work you need the clumsy definition Markup('mBlue', '^', '/{mBlue\+}/', 'gt;gt;color=bluelt;lt;'); This is neither intuitive nor documented! It took me quite a time to find out. At least it would also work for text variables. Could you fix pmWiki, such that 'color=red' would work? thanks a lot Walter see http://wlkl.ch/wiki/index.php?n=My.Test2 ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] styles in customMarkup
On Sunday 24 January 2010 15:04:05, Walter Keller wrote : Markup('mRed', '^', '/{mRed\+}/', 'color=red'); then then the formatting is not honoured, just the text expanded to color To make it work you need the clumsy definition Markup('mBlue', '^', '/{mBlue\+}/', 'gt;gt;color=bluelt;lt;'); This is neither intuitive nor documented! It took me quite a time to find out. At least it would also work for text variables. Feel free to document it on pmwiki.org on the pages where you think it should be documented -- this may be helpful to other users. Thanks in advance. Could you fix pmWiki, such that 'color=red' would work? No. PmWiki converts the wiki-text to HTML which uses a lot the characters and . In order not to mess with what it already processed to HTML, PmWiki converts those characters and from the wiki source to the entities lt; and gt;, and uses them when the page markup is processed. So it is correct, if you define new markup rules containing and , which are not native HTML but should be re-processed by PmWiki, you should use lt; and gt;. Thanks, Petko P.S. If your use of the {mBlue} markup is really as simple as your example, you know you can use the built-in %red% and %blue% command to change the text to red and to blue. ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
[pmwiki-users] Styles
How can I define a style: a box, font courier, 85% or the width, and that works in IE? -- Thanks http://www.911networks.com When the network has to work ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users