plugin:codepad
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:codepad [2011-08-29 14:01] – made code block downloadable ach | plugin:codepad [2020-02-18 17:20] (current) – Aleksandr | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : | email : | ||
- | type : | + | type : |
lastupdate : 2011-08-28 | lastupdate : 2011-08-28 | ||
compatible : | compatible : | ||
Line 13: | Line 13: | ||
tags : code | tags : code | ||
- | downloadurl: | + | downloadurl: |
- | bugtracker : # eg. http:// | + | bugtracker : # eg. https:// |
- | sourcerepo : # eg. http:// | + | sourcerepo : # eg. https:// |
donationurl: | donationurl: | ||
---- | ---- | ||
Line 34: | Line 34: | ||
*/ | */ | ||
if (!defined(' | if (!defined(' | ||
- | if (!defined(' | ||
if (!defined(' | if (!defined(' | ||
- | require_once (DOKU_PLUGIN.' | ||
class syntax_plugin_codepad extends DokuWiki_Syntax_Plugin { | class syntax_plugin_codepad extends DokuWiki_Syntax_Plugin { | ||
Line 47: | Line 45: | ||
} | } | ||
- | function handle($match, | + | function handle($match, |
$match_array = array(); | $match_array = array(); | ||
//strip ~~codepad: from start and ~~ from end | //strip ~~codepad: from start and ~~ from end | ||
Line 59: | Line 57: | ||
* Create output | * Create output | ||
*/ | */ | ||
- | function render($mode, | + | function render($mode, |
global $conf; | global $conf; | ||
if($mode == ' | if($mode == ' | ||
Line 113: | Line 111: | ||
~~codepad~~ | ~~codepad~~ | ||
</ | </ | ||
+ | |||
===== Syntax ===== | ===== Syntax ===== | ||
Line 118: | Line 117: | ||
~~codepad~~ | ~~codepad~~ | ||
</ | </ | ||
+ | |||
===== Configuration and Settings ===== | ===== Configuration and Settings ===== | ||
Line 127: | Line 127: | ||
=== Change Log === | === Change Log === | ||
- | |||
* **2011-08-28** | * **2011-08-28** | ||
Line 147: | Line 146: | ||
//Could be placed on an external page (e.g. plugin: | //Could be placed on an external page (e.g. plugin: | ||
- | |||
plugin/codepad.1314619316.txt.gz · Last modified: 2011-08-29 14:01 by ach