DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:codebash

CodeBash Plugin

Compatible with DokuWiki

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

plugin Adds a code button for bash in the toolbar.

Last updated on
2018-02-25
Provides
Action
Repository
Source

Similar to codebutton, custombuttons

Tagged with bash, button, code, toolbar

By Screw Loose Dan

This is a plugin adds a toolbar button to add the <code bash> tag. The code was originally from CodeButton Plugin.

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 in your toolbar. Use the bash icon to add <code bash> and </code> to your DokuWiki markup.

This allows for pretty syntax highlighting of bash code, like this:

#!/bin/bash
# simple bash script
echo "Hello World"

Known Bugs and Issues

None at this time…please report here - https://github.com/ScrewLooseDan/codebash/issues

Discussion

Let me know your thoughts.

Sources

The basis of this code was from the CodeButton Plugin, only slightly modified for my purposes and updated to not throw php errors using php7.

The icon that is used is used under Creative Commons Attribution-NoDerivs 3.0 Unported license from https://icons8.com/.

plugin/codebash.txt · Last modified: 2018-02-25 18:34 by Screw Loose Dan