[dokuwiki] Re: Newbie needs help understanding Plugin creation
- From: Chris Smith <chris@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Thu, 31 May 2007 11:16:42 +0100
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
- References:
- [dokuwiki] Re: Newbie needs help understanding Plugin creation
- From: Tony Steward
Other related posts:
- » [dokuwiki] Newbie needs help understanding Plugin creation
- » [dokuwiki] Re: Newbie needs help understanding Plugin creation
- » [dokuwiki] Re: Newbie needs help understanding Plugin creation
- » [dokuwiki] Re: Newbie needs help understanding Plugin creation
- » [dokuwiki] Re: Newbie needs help understanding Plugin creation
- » [dokuwiki] Re: Newbie needs help understanding Plugin creation
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
- [dokuwiki] Re: Newbie needs help understanding Plugin creation
- From: Tony Steward