Table of Contents

CodeMirror Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" yes
  • 2016-06-26 "Elenor Of Tsort" yes
  • 2015-08-10 "Detritus" yes
  • 2014-09-29 "Hrun" yes

plugin Editor with syntax highlighting

Last updated on
2017-05-01
Provides
Action
Repository
Source
Conflicts with
ckgedit, fastwiki, linksuggest, tagentry, toolbox

Similar to aceeditor, skydoku

Tagged with codemirror, editing

Installation

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

Examples/Usage

Development

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 https://github.com/albertgasset/dokuwiki-plugin-codemirror.git codemirror
 
# Install required Node.js modules
cd codemirror
npm install
 
# Build once
grunt
 
# Or, build and watch for modified files
grunt dev

Change Log

ToDo/Wish List

FAQ

Which browsers are supported?

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. CTL-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.

Discussion

To report a bug, please use the issue tracker.