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-28 19:38] – [codepad Plugin] 84.146.149.58 | 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 21: | Line 21: | ||
===== Installation ===== | ===== Installation ===== | ||
- | //[First, last and only chance to warn users before installing (some has already done that before reading this)]// | + | Install manually. |
- | :!: **External requirements: | + | <code php codepad/syntax.php> |
- | * [[A banana]] | + | |
- | * [[Another banana]] | + | |
- | + | ||
- | Install the plugin using the [[plugin: | + | |
- | + | ||
- | + | ||
- | '' | + | |
- | <code> | + | |
<?php | <?php | ||
/** | /** | ||
- | * Plugin | + | * Plugin |
- | * @author | + | * @author |
- | * @copyright Copyright (C) 2009-2011 eIrOcA - Enrico Croce & Simona Burzio | + | * @copyright Copyright (C) 2011 deshi |
* @license GPL >=3 (http:// | * @license GPL >=3 (http:// | ||
- | * @version 1.0.2 | + | * @version 1.0.0 |
- | * @link http://www.eiroca.net | + | * @link http://www.dokuwiki.org/ |
*/ | */ | ||
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 55: | 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 67: | Line 57: | ||
* Create output | * Create output | ||
*/ | */ | ||
- | function render($mode, | + | function render($mode, |
global $conf; | global $conf; | ||
if($mode == ' | if($mode == ' | ||
Line 118: | Line 108: | ||
===== Examples/ | ===== Examples/ | ||
- | //[Most people learn by example, so this goes first]// | + | <code> |
- | + | ~~codepad~~ | |
- | See the plugin in action [[www.demosite.com|here]]. The sample page shows all the styles available with the plugin. | + | </code> |
- | + | ||
- | A simple box: | + | |
- | + | ||
- | | + | |
- | + | ||
- | Some more complex boxes | + | |
- | + | ||
- | <box 80% round orange|a title> the box contents</box> | + | |
- | <box 50% left blue>the box contents</ | + | |
- | <box 60% round #f99 #fc9 #fcc # | + | |
- | + | ||
- | //[Pictures showing the rendered result will help users to understand]// | + | |
===== Syntax ===== | ===== Syntax ===== | ||
- | //[Complete syntax]// | + | < |
- | + | ~~codepad~~ | |
- | Basic syntax: | + | </ |
- | < | + | |
- | * **action** can be one of this: | + | |
- | * // | + | |
- | * //history// --- old revisions | + | |
===== Configuration and Settings ===== | ===== Configuration and Settings ===== | ||
- | //[also CSS style tips]// | + | |
===== Development ===== | ===== Development ===== | ||
- | // | + | anyone |
=== Change Log === | === Change Log === | ||
- | // | + | |
- | + | ||
- | | + | |
* Initial release | * Initial release | ||
=== Known Bugs and Issues === | === Known Bugs and Issues === | ||
- | //[this section might not be needed in case of external bug manager, or use RSS feed]// | + | none |
=== ToDo/Wish List === | === ToDo/Wish List === | ||
- | // | + | |
===== FAQ ===== | ===== FAQ ===== | ||
- | // | + | |
===== Discussion ===== | ===== Discussion ===== | ||
//Could be placed on an external page (e.g. plugin: | //Could be placed on an external page (e.g. plugin: | ||
- | |||
plugin/codepad.1314553093.txt.gz · Last modified: 2011-08-28 19:38 by 84.146.149.58