1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Merge pull request #1567 from sukima/fix-codemirror-readme

Fix CodeMirror README formatting
This commit is contained in:
Jeremy Ruston 2015-03-10 20:24:07 +00:00
commit 0f5cebc6b0

View File

@ -226,9 +226,8 @@ Then the closing tag ''</html>'' should automatically appear.
## Create a tiddler `$:/plugins/tiddlywiki/codemirror/addon/fold/xml-fold.js`, the code can be found here [[https://raw.githubusercontent.com/codemirror/CodeMirror/master/addon/fold/xml-fold.js]]
## Create a tiddler `$:/plugins/tiddlywiki/codemirror/addon/fold/foldgutter.js`, the code can be found here [[http://codemirror.net/addon/fold/foldgutter.js]]
# Create a tiddler `$:/plugins/tiddlywiki/codemirror/addon/fold/foldgutter.css`
## Add the tag ''$:/tags/Stylesheet''
## Add the tag `$:/tags/Stylesheet`
## Set the text field of the tiddler with the css code from this link : [[http://codemirror.net/addon/fold/foldgutter.css]]
# Set the text field of the tiddler `$:/config/CodeMirror` to:
```
@ -247,7 +246,6 @@ Then the closing tag ''</html>'' should automatically appear.
"gutters": ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]
}
}
```
Now if you type the below code in a tiddler with the type `text/html`: