plugin:dokuprism
Table of Contents
DokuPrism Plugin
Compatible with DokuWiki
- 2024-02-06 "Kaos" unknown
- 2023-04-04 "Jack Jackrum" yes
- 2022-07-31 "Igor" unknown
- 2020-07-29 "Hogfather" unknown
Similar to codeprism
This plugin replaces DokuWiki's built-in syntax with a JavaScript based approach using Prism.js.
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.
Examples/Usage
By default this plugin override builtin <code>
and <file>
tags. You can change this in DokuWiki settings.
You can see Prism JS in action here.
Syntax
<code html> ... </code>
<file py> ... </file>
Full list of available languages can be found on prismjs site.
Configuration and Settings
After plugin installation two new options will appear in your Configuration Manager in section Dokuprism:
- plugin dokuprism override code
- plugin dokuprism override file
By default both are enabled which mean that PrismJS will be used for both tags.
Change Log
- 2023-06-23
- Fixed padding in code block
- Upgraded Prism version from 1.19.0 to 1.29.0
- 2020-02-05
- Initial release
Known Bugs and Issues
- Lack of translation for settings
plugin/dokuprism.txt · Last modified: 2024-02-06 10:06 by Aleksandr