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

plugin Use prism.js for syntax highlight

Last updated on
2023-11-25
Provides
Syntax
Repository
Source

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:

By default both are enabled which mean that PrismJS will be used for both tags.

Change Log

Known Bugs and Issues