It's better when it's simple

User Tools

Site Tools


CodeMirror Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" yes
  • 2023-04-04 "Jack Jackrum" yes
  • 2022-07-31 "Igor" yes
  • 2020-07-29 "Hogfather" yes

plugin Enhances DokuWiki's Editor with syntax highlighting

Last updated on
Conflicts with
ckgedit, fastwiki, linksuggest, prosemirror, tagentry, toolbox

:!: This plugin is no longer maintained. You might want to check the prosemirror plugin as an alternative.

Need new maintainer

FIXME Look for new maintainer - see

Unfortunately albertgasset has abandoned the project and stopped support. Fortunately Andi made the project at least Hogfather compatible. But now we are looking for a new maintainer who will take care of Codemirror and develop it further.


Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.



To build the plugin from source code, you need Node.js and Grunt:

# Go to the plugins folder of DokuWiki
cd dokuiki/lib/plugins
# Install Grunt globally
npm -g install grunt-cli 
# Clone the repo
git clone codemirror
# Install required Node.js modules
cd codemirror
npm install
# Build once
# Or, build and watch for modified files
grunt dev

Change Log

ToDo/Wish List

  • Autosave
  • Section folding
  • Syntax highlighting of more syntax plugins
  • Syntax highlighting for the case <command>....</command> (e.g.: <tab>...</tab>)
  • [F11]-Full Screen Editing (see addon “display/fullscreen.js”)


Which browsers are supported?

  • Firefox: version 3 and up
  • Chrome: any version
  • Safari: version 5.2 and up
  • Internet Explorer: version 8 and up
  • Opera: version 9 and up

See CodeMirror browser support.

Is the default editor still available?

Yes, You can disable this plugin with button in the editor control.

What syntax elements are highlighted?

Only syntax elements from core plugins and content inside <html>, <php>, <code> and <file> for languages supported by CodeMirror.

Does it have a text search function?

Yes. CTRL+F (CMD+F on a Mac) will being up a search box where you can enter a search string or a regular expression. CodeMirror will highlight all instances of matching strings throughout the document, and will scroll to the first match. On a Mac, CMD+G will find the next matching string.


To report a bug, please use the issue tracker.

plugin/codemirror.txt · Last modified: 2024-02-08 09:07 by LMS23

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