Table of Contents
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
This plugin is no longer maintained. You might want to check the prosemirror plugin as an alternative.
Need new maintainer
Look for new maintainer - see https://forum.dokuwiki.org/d/18017-maintainer-for-codemirror-wanted
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.
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
- translation update (2020-06-16 13:25)
- translation update (2020-06-16 13:24)
- translation update (2020-06-16 13:24)
- translation update (2020-06-16 13:22)
- translation update (jp) (2018-06-03 18:02)
- translation update (sv) (2018-01-02 12:41)
- Translation update (ca) (2017-11-26 18:22)
- Merge pull request #77 from dokuwiki-translate/lang_update_589_1507879320 (2017-11-22 16:38)
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”)
FAQ
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
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.
Discussion
To report a bug, please use the issue tracker.