====== download code block Plugin ====== ---- plugin ---- description: Adds buttons to download code blocks author : Thomas Weber email : tw@notabit.eu type : Action lastupdate : 2020-10-22 compatible : Hogfather depends : conflicts : similar : tags : code, download downloadurl: http://github.com/th-we/dokuwiki-plugin-downloadcodeblock/zipball/main bugtracker : http://github.com/th-we/dokuwiki-plugin-downloadcodeblock/issues sourcerepo : http://github.com/th-we/dokuwiki-plugin-downloadcodeblock/ donationurl: screenshot_img : https://raw.githubusercontent.com/th-we/dokuwiki-plugin-downloadcodeblock/main/screenshot.png ---- ===== 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. ===== Example/Usage ===== This plugin requires no special syntax. It just adds a download button to all code blocks. If it finds something that looks like a file name in the preceding element, it will use that as the default file name for download. In the following example, the file name would default to "hello-world.sh". ===== ~/.local/bin/hello-world.sh ===== #!/bin/bash zenity --info --text="Hello World!"