DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:codepad

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
plugin:codepad [2011-08-28 19:38] – [codepad Plugin] 84.146.149.58plugin:codepad [2020-02-18 17:20] (current) Aleksandr
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: uses interpreters on codepad.org to execute sourcecode+description: Uses interpreters on codepad.org to execute sourcecode
 author     : deshi  author     : deshi 
 email      :   email      :  
-type       : substitution+type       : syntax
 lastupdate : 2011-08-28 lastupdate : 2011-08-28
 compatible :  compatible : 
Line 13: Line 13:
 tags       : code tags       : code
  
-downloadurl: # eg. http://github.com//dokuwiki-plugin-codepad/zipball/master +downloadurl: # eg. https://github.com//dokuwiki-plugin-codepad/zipball/master 
-bugtracker : # eg. http://github.com//dokuwiki-plugin-codepad/issues +bugtracker : # eg. https://github.com//dokuwiki-plugin-codepad/issues 
-sourcerepo : # eg. http://github.com//dokuwiki-plugin-codepad/+sourcerepo : # eg. https://github.com//dokuwiki-plugin-codepad/
 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:** This plugin requires the following additional components that must be installed separately:  +<code php codepad/syntax.php>
-  * [[A banana]] +
-  * [[Another banana]] +
- +
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually. +
- +
- +
-''codepad\syntax.php'' +
-<code>+
 <?php <?php
 /** /**
- * Plugin barcode2D-Barcode Implementation + * Plugin codepad:  
- * @author Enrico Croce & Simona Burzio (staff@eiroca.net) + * @author deshi 
- * @copyright Copyright (C) 2009-2011 eIrOcA - Enrico Croce & Simona Burzio+ * @copyright Copyright (C) 2011 deshi
  * @license GPL >=3 (http://www.gnu.org/licenses/)  * @license GPL >=3 (http://www.gnu.org/licenses/)
- * @version 1.0.2 + * @version 1.0.0 
- * @link http://www.eiroca.net+ * @link http://www.dokuwiki.org/plugin:codepad
  */  */
 if (!defined('DOKU_INC')) die(); if (!defined('DOKU_INC')) die();
-if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); 
 if (!defined('DOKU_PLUGIN_CODEPAD')) define('DOKU_PLUGIN_CODEPAD',DOKU_PLUGIN.'codepad/'); if (!defined('DOKU_PLUGIN_CODEPAD')) define('DOKU_PLUGIN_CODEPAD',DOKU_PLUGIN.'codepad/');
-require_once (DOKU_PLUGIN.'syntax.php'); 
  
 class syntax_plugin_codepad extends DokuWiki_Syntax_Plugin { class syntax_plugin_codepad extends DokuWiki_Syntax_Plugin {
Line 55: Line 45:
  }  }
   
- function handle($match, $state, $pos, &$handler) {+ function handle($match, $state, $pos, Doku_Handler $handler) {
  $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, &$renderer, $data) {+ function render($mode, Doku_Renderer $renderer, $data) {
  global $conf;  global $conf;
             if($mode == 'xhtml'){             if($mode == 'xhtml'){
Line 118: Line 108:
 ===== Examples/Usage ===== ===== Examples/Usage =====
  
-//[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: +
- +
-  <box> the box contents </box+
- +
-Some more complex boxes +
- +
-  <box 80% round orange|a title> the box contents</box> +
-  <box 50% left blue>the box contents</box|a caption> +
-  <box 60% round #f99 #fc9 #fcc #f60|title>the box contents></box|caption> +
- +
-//[Pictures showing the rendered result will help users to understand]//+
  
 ===== Syntax ===== ===== Syntax =====
  
-//[Complete syntax]// +<code> 
- +~~codepad~~ 
-Basic syntax: +</code>
-<code>{{actionlink>action|title}}</code> +
-  * **action** can be one of this: +
-    * //edit//    --- edit/create/show +
-    * //history// --- old revisions+
  
 ===== Configuration and Settings ===== ===== Configuration and Settings =====
  
-//[also CSS style tips]//+
  
 ===== Development ===== ===== Development =====
  
-//[downloadable blocks, development comments]//+anyone
  
 === Change Log === === Change Log ===
  
-//[preferable GitHub RSS feed or similar]// +  * **2011-08-28**
- +
-  * **2009-01-01**+
     * 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 ===
  
-//[developers roadmap]//+
  
 ===== FAQ ===== ===== FAQ =====
  
-//[discussions should ideally be deleted and turned into FAQ entries along the way]//+
  
 ===== Discussion ===== ===== Discussion =====
  
 //Could be placed on an external page (e.g. plugin:pluginname:discussion) to have a distinction between user comments and author docs// //Could be placed on an external page (e.g. plugin:pluginname:discussion) to have a distinction between user comments and author docs//
- 
  
  
plugin/codepad.1314553093.txt.gz · Last modified: 2011-08-28 19:38 by 84.146.149.58

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