Compatible with DokuWiki
2017-02-19e "Frusterick Manners"
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
This is a plugin adds a toolbar button to add the <code bash>
tag. The code was originally from CodeButton Plugin.
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
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"
None at this time… Please report here – https://github.com/ScrewLooseDan/codebash/issues
Let me know your thoughts.
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.