DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:codebash

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:codebash [2018-02-25 18:34] Screw Loose Danplugin:codebash [2018-05-30 17:42] (current) Aleksandr
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: Adds a code button for bash in the toolbar. +description: Adds a code button for bash in the toolbar 
-author     : Screw Loose Dan +author     : Screw Loose Dan 
 +email      : 
 type       : action type       : action
 lastupdate : 2018-02-25 lastupdate : 2018-02-25
Line 10: Line 11:
 conflicts  conflicts 
 similar    : codebutton, custombuttons similar    : codebutton, custombuttons
-tags       : toolbar, button, code, bash+tags       : bash, button, code, toolbar
  
-downloadurl: https://github.com/ScrewLooseDan/codebash/archive/master.zip+downloadurl: https://github.com/ScrewLooseDan/codebash/zipball/master
 bugtracker : https://github.com/ScrewLooseDan/codebash/issues bugtracker : https://github.com/ScrewLooseDan/codebash/issues
 sourcerepo : https://github.com/ScrewLooseDan/codebash sourcerepo : https://github.com/ScrewLooseDan/codebash
 +donationurl: 
  
 +screenshot_img: 
 ---- ----
  
-This is a plugin adds a toolbar button to add the ''<code bash>'' tag.  The code was originally from [[plugin:codebutton|CodeButton Plugin]].+This is a plugin adds a toolbar button to add the ''%%<code bash>%%'' tag.  The code was originally from [[plugin:codebutton|CodeButton Plugin]].
  
 ===== Installation ===== ===== Installation =====
  
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually. +Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ===== Syntax and Usage ===== ===== 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.+After installation you'll find a new button {{https://raw.githubusercontent.com/ScrewLooseDan/codebash/master/pix/code.png?20x20&recache|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: This allows for pretty syntax highlighting of bash code, like this:
Line 35: Line 36:
 #!/bin/bash #!/bin/bash
 # simple bash script # simple bash script
-echo "Hello World"</code>+echo "Hello World" 
 +</code>
  
 === Known Bugs and Issues === === Known Bugs and Issues ===
  
-None at this time...please report here - https://github.com/ScrewLooseDan/codebash/issues +None at this time... Please report here -- https://github.com/ScrewLooseDan/codebash/issues
  
 ===== Discussion ===== ===== Discussion =====
Line 50: Line 51:
 The basis of this code was from the [[plugin:codebutton|CodeButton Plugin]], only slightly modified for my purposes and updated to not throw php errors using php7. The basis of this code was from the [[plugin:codebutton|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/.+The icon that is used is used under Creative Commons Attribution-NoDerivs 3.0 Unported license from [[https://icons8.com/|icons8.com]].
plugin/codebash.1519580073.txt.gz · Last modified: 2018-02-25 18:34 by Screw Loose Dan

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