DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:codebutton

This is an old revision of the document!


CodeButton Plugin

Compatible with DokuWiki

2009-12-25 "Lemming", 2010-11-07 "Anteater", 2011-05-25 "Rincewind", 2012-01-25 "Angua", 2012-10-13 "Adora Belle", 2013-03-06, 2013-05-10 "Weatherwax", 2013-12-08 "Binky", 2014-05-05 "Ponder Stibbons", 2014-09-29 "Hrun", 2015-08-10 "Detritus", 2017-02-19

plugin In the default toolbar there is no code button available. This plugin will add one.

Last updated on
2010-03-02
Provides
Action

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to codebash, codebuttonmod1, codebuttonmod2, custombuttons

Tagged with button, code, toolbar

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Syntax and Usage

After installation you'll find a new button at the end of your regular toolbar. Use them to add “<file>Insert Code</file>” to your DokuWiki markup.

Discussion

There is a bug when using this plugin with PHP7 action.php line 30 needs to be updated with: function register(Doku_Event_Handler $controller) {

So nobody complains anything, I guess everything works fine with this plugin :o)

  • Top plugin works fine!
  • Florin 2015/02/26 09:08, Hrun - Super !

Not at all ;-)
The plugin archive need to be rename as codebutton.zip to be installed properly. theguy[at]freesquare[dot]org

It works fine for me. I just installed it via the “extension manager”, by searching for “codebutton” and clicking the install button. — Heiko 2015-08-27 23:09

Wish

The tag file is not ok :) I was expecting that this would insert code tag instead and in the interface i provide the language i need. Is it possible to improove? OK - I found this one codebutton2

The <file> tag is pretty much the same as <code>, but you could use it to show that you quoted a file. There is no disadvantage using <file> instead of <code>. — Heiko 2015-08-27 23:13
plugin/codebutton.1507294030.txt.gz · Last modified: 2017-10-06 14:47 by Aleksandr

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