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 revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
devel:syntax_plugins [2016-12-05 08:43] – [Syntax Plugins] 82.135.221.214devel:syntax_plugins [2017-07-25 12:10] – [Sort Number] belonging two => belonging to two 109.218.95.146
Line 1: Line 1:
 ====== Syntax Plugins ======  ====== Syntax Plugins ====== 
  
-[[plugintype>1#extension__table|Syntax Plugins]] are what? [[:devel:plugins]] to extend DokuWiki's [[wiki:syntax]]. To be able to understand what is needed to register new Syntax within DokuWiki you should read how the [[Parser]] works.+[[plugintype>1#extension__table|Syntax Plugins]] are [[:devel:plugins]] to extend DokuWiki's [[wiki:syntax]]. To be able to understand what is needed to register new Syntax within DokuWiki you should read how the [[Parser]] works.
 ===== Synopsis ===== ===== Synopsis =====
  
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: 2023-09-01 23:53 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki