It's better when it's simple

User Tools

Site Tools


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

plugin Use prism.js for syntax highlight

Last updated on

This plugin replaces DokuWiki's built-in syntax with a JavaScript based approach using Prism.js.


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.


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.


<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

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