DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:syntax_plugins

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
devel:syntax_plugins [2016-12-05 09:45]
141.65.129.207 old revision restored (2016-05-10 13:37)
devel:syntax_plugins [2017-07-25 12:10] (current)
109.218.95.146 [Sort Number] belonging two => belonging to two
Line 158: Line 158:
 ==== Sort Number ==== ==== Sort Number ====
  
-This number is used by the lexer((the part of the parser which analyses the raw wiki page)) to control the order it tests the syntax mode patterns against raw wiki data.  It is only important if the patterns belonging two or more modes match the same raw data - where the pattern belonging to the mode with the lowest sort number will win out.+This number is used by the lexer((the part of the parser which analyses the raw wiki page)) to control the order it tests the syntax mode patterns against raw wiki data.  It is only important if the patterns belonging to two or more modes match the same raw data - where the pattern belonging to the mode with the lowest sort number will win out.
  
 You can make use of this behaviour to write a plugin which will replace or extend a native DokuWiki handler for the same syntax.  An example is the [[plugin:code]] plugin. You can make use of this behaviour to write a plugin which will replace or extend a native DokuWiki handler for the same syntax.  An example is the [[plugin:code]] plugin.
devel/syntax_plugins.txt ยท Last modified: 2017-07-25 12:10 by 109.218.95.146