DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:codebash

CodeBash Plugin

Compatible with DokuWiki

2017-02-19e "Frusterick Manners"

plugin Adds a code button for bash in the toolbar

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

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 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

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 code 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 icons8.com.

plugin/codebash.txt · Last modified: 2018-05-30 17:42 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