kopia lustrzana https://github.com/miklobit/TiddlyWiki5
21 wiersze
572 B
Plaintext
21 wiersze
572 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. For example:
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"require": [
|
||
|
"$:/plugins/tiddlywiki/codemirror/addon/dialog.js",
|
||
|
"$:/plugins/tiddlywiki/codemirror/addon/searchcursor.js",
|
||
|
"$:/plugins/tiddlywiki/codemirror/keymap/vim.js",
|
||
|
"$:/plugins/tiddlywiki/codemirror/keymap/emacs.js"
|
||
|
],
|
||
|
"configuration": {
|
||
|
"keyMap": "vim",
|
||
|
"showCursorWhenSelecting": true
|
||
|
}
|
||
|
}
|
||
|
```
|