DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:codebutton

CodeButton Plugin

Compatible with DokuWiki

  • 2018-04-22 "Greebo" yes
  • 2017-02-19 "Frusterick Manners" yes
  • 2016-06-26 "Elenor Of Tsort" yes
  • 2015-08-10 "Detritus" yes

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

Last updated on
2018-09-17
Provides
Action

Similar to custombuttons

Tagged with button, code, toolbar

PHP7 Info

This plugin is not yet compatible with PHP7. Hopefully, I got some time during the christmas holidays for fixing. If someone else is willing to fix it before, please let me know. — Heiko 2018-12-06 18:07

Installation

Search and install the plugin using the Extension Manager. 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.txt · Last modified: 2018-12-06 18:11 by casper