[dokuwiki] Re: Newbie needs help understanding Plugin creation

Tony Steward wrote:
Well I give up I can't make this plugin work.

Maybe i'm stupid but can someone please show me how to do this!!!!!!!!!
I want to type <KEYCONV|something> on a page then have it substitued with 
"HelloWorld!something".
This should be simple but I just dont get it.

Thanks
Tony


I think you are better off working from the second tutorial plugin - color, rather than the skeleton or now plugins, which are extremely basic.

Reread the section on Patterns ... http://wiki.splitbrain.org/plugin:tutorial#patterns

You are defining a syntax mode with an entry and an exit. So you must use the corresponding pattern functions, addEntryPattern() and addExitPattern(), not addPattern(). As the documentation says, addPattern represents "special syntax applicable to the plugin that may occur between the entry and exit patterns".

--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: