plugin:pagebreak
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:pagebreak [2009-12-28 18:07] – added block download name HåkanS | plugin:pagebreak [2023-08-16 18:15] (current) – [Development] 104.33.209.15 | ||
---|---|---|---|
Line 3: | Line 3: | ||
---- plugin ---- | ---- plugin ---- | ||
description: | description: | ||
- | author | + | author |
email : j.mcbride@mail.utexas.edu | email : j.mcbride@mail.utexas.edu | ||
type : syntax | type : syntax | ||
- | lastupdate : 2007-08-08 | + | lastupdate : 2016-02-16 |
- | compatible : | + | compatible : Hrun, Frusterick Manners |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : typography, export, printing | + | tags : typography, export, printing, pagebreak |
+ | |||
+ | downloadurl: | ||
+ | bugtracker : https:// | ||
+ | sourcerepo : https:// | ||
---- | ---- | ||
+ | |||
====Description==== | ====Description==== | ||
This plugin inserts a ' | This plugin inserts a ' | ||
+ | |||
+ | Works well with the [[plugin: | ||
====Use==== | ====Use==== | ||
Insert a %%< | Insert a %%< | ||
- | ====Code==== | + | ====Installation==== |
- | <code php syntax.php> | + | Search and install |
- | <?php | + | |
- | /** | + | |
- | * Plugin Tab: Inserts a pagebreak into the document for every < | + | |
- | * | + | |
- | * @license | + | |
- | * @author | + | |
- | * | + | |
- | */ | + | |
- | + | ||
- | if(!defined(' | + | |
- | if(!defined(' | + | |
- | require_once(DOKU_PLUGIN.' | + | |
- | + | ||
- | /** | + | |
- | * All DokuWiki plugins | + | |
- | * need to inherit from this class | + | |
- | */ | + | |
- | class syntax_plugin_pagebreak extends DokuWiki_Syntax_Plugin { | + | |
- | + | ||
- | /** | + | |
- | * return some info | + | |
- | */ | + | |
- | function getInfo(){ | + | |
- | return array( | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ); | + | |
- | } | + | |
- | + | ||
- | /** | + | |
- | * What kind of syntax are we? | + | |
- | */ | + | |
- | function getType(){ | + | |
- | return ' | + | |
- | } | + | |
- | + | ||
- | /** | + | |
- | * What kind of syntax do we allow (optional) | + | |
- | */ | + | |
- | // function getAllowedTypes() { | + | |
- | // return array(); | + | |
- | // } | + | |
- | + | ||
- | /** | + | |
- | * What about paragraphs? (optional) | + | |
- | */ | + | |
- | // function getPType(){ | + | |
- | // return ' | + | |
- | // } | + | |
- | + | ||
- | /** | + | |
- | * Where to sort in? | + | |
- | */ | + | |
- | function getSort(){ | + | |
- | return 999; | + | |
- | } | + | |
- | + | ||
- | + | ||
- | /** | + | |
- | * Connect pattern to lexer | + | |
- | */ | + | |
- | function connectTo($mode) { | + | |
- | $this-> | + | |
- | // $this-> | + | |
- | } | + | |
- | + | ||
- | // function postConnect() { | + | |
- | // $this-> | + | |
- | // } | + | |
- | + | ||
- | + | ||
- | /** | + | |
- | * Handle the match | + | |
- | */ | + | |
- | function handle($match, | + | |
- | switch ($state) { | + | |
- | case DOKU_LEXER_ENTER : | + | |
- | break; | + | |
- | case DOKU_LEXER_MATCHED : | + | |
- | break; | + | |
- | case DOKU_LEXER_UNMATCHED : | + | |
- | break; | + | |
- | case DOKU_LEXER_EXIT : | + | |
- | break; | + | |
- | case DOKU_LEXER_SPECIAL : | + | |
- | break; | + | |
- | } | + | |
- | return array(); | + | |
- | } | + | |
- | + | ||
- | /** | + | |
- | * Create output | + | |
- | */ | + | |
- | function render($mode, | + | |
- | if($mode == ' | + | |
- | $renderer-> | + | |
- | // $renderer-> | + | |
- | return true; | + | |
- | } | + | |
- | return false; | + | |
- | } | + | |
- | } | + | |
- | //Setup VIM: ex: et ts=4 enc=utf-8 : | + | ===== Development ===== |
- | </ | + | |
- | ====Installation==== | ||
- | Create a new folder “lib/ | ||
- | ====Discussion==== | + | === Change Log === |
- | This plugin is **hugely** based on the [[plugin:tab|tab | + | |
+ | {{rss> | ||
+ | |||
+ | === Known Bugs and Issues | ||
+ | |||
+ | Please report bugs and issues at the [[https:// | ||
+ | > [[; |
plugin/pagebreak.1262020031.txt.gz · Last modified: 2009-12-28 18:07 by HåkanS