[dokuwiki] Plugin example question
- From: Robin Getz <rgetz@xxxxxxxxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Mon, 01 Aug 2005 11:44:27 -0400
I was looking at the 2nd example plugin:
http://wiki.splitbrain.org/plugin:tutorial#sample_plugin_2_-_color
and this does not work for me:
The wiki code:
-------------------
<color RED/BLUE>This text should be red with a blue background</color>
**<color BLUE/GREEN>This text should be bold & blue with a green
background</color>**
<code>
<color RED/BLUE>This text should be red with a blue background</color>
**<color BLUE/GREEN>This text should be bold & blue with a green
background</color>**
<color YELLOW/RED>This says that //wiki formatting// doesn't work inside
tags</color>
<color YELLOW/RED>This says that </color>//<color YELLOW/RED>wiki
formatting</color>//<color YELLOW/RED> doesn't work inside tags</color>
</code>
------------------
generates the following html:
------------------
<p>
<span style='color:RED; background-color:BLUE>This text should be red with
a blue background</color>
** <color BLUE/GREEN>This text should be bold & blue with a green
background</color> **
<code>
<color RED/BLUE>This text should be red with a blue background</color>
**<color BLUE/GREEN>This text should be bold & blue with a green
background</color>**
<color YELLOW/RED>This says that //wiki formatting// doesn't work inside
tags</color>
<color YELLOW/RED>This says that </color>//<color YELLOW/RED>wiki
formatting</color>//<color YELLOW/RED;'> doesn't work inside tags</span>
</p>
--------------------
It looks like the </color> tags are being skipped, and that it is finding
some </color> tag, but not the first one?
Should DOKU_LEXER_EXIT be giving you the first exit state, or is it
possible to have exit states in the $match, that you should check for?
Thanks
-Robin
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
Other related posts: