mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-06 01:56:20 +00:00
8dd30e97ac
This addon is already included into the plugin, but is not used, neither mentioned how to use it. It is a very useful but lightweight addon. I consider it is better to include the full functionality of the current configuration in the config example.
27 lines
841 B
Plaintext
27 lines
841 B
Plaintext
title: $:/plugins/tiddlywiki/codemirror/instructions
|
|
|
|
! Configuration
|
|
|
|
* You can configure the CodeMirror plugin by creating a tiddler called [[$:/config/CodeMirror]] containing a JSON configuration object.
|
|
* The configuration tiddler needs to be `type: application/json`, to take effect.
|
|
|
|
For example:
|
|
|
|
```
|
|
{
|
|
"require": [
|
|
"$:/plugins/tiddlywiki/codemirror/mode/javascript/javascript.js",
|
|
"$:/plugins/tiddlywiki/codemirror/addon/dialog/dialog.js",
|
|
"$:/plugins/tiddlywiki/codemirror/addon/search/searchcursor.js",
|
|
"$:/plugins/tiddlywiki/codemirror/addon/edit/matchbrackets.js",
|
|
"$:/plugins/tiddlywiki/codemirror/keymap/vim.js",
|
|
"$:/plugins/tiddlywiki/codemirror/keymap/emacs.js"
|
|
],
|
|
"configuration": {
|
|
"keyMap": "vim",
|
|
"matchBrackets":true,
|
|
"showCursorWhenSelecting": true
|
|
}
|
|
}
|
|
```
|