DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:downloadcodeblock

download code block Plugin

Compatible with DokuWiki

  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes
  • 2018-04-22 "Greebo" unknown
  • 2017-02-19 "Frusterick Manners" unknown

plugin Adds buttons to download code blocks

Last updated on
2020-10-22
Provides
Action
Repository
Source

Tagged with code, download

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.

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

<code>
#!/bin/bash
zenity --info --text="Hello World!"
</code>
plugin/downloadcodeblock.txt · Last modified: 2022-01-31 08:40 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