Fix documentation for CM modes in README.md (#218)
This commit is contained in:
16
README.md
16
README.md
@@ -84,13 +84,15 @@ Mergely will emit an `updated` event when the editor is first initialized, and e
|
|||||||
|
|
||||||
### Visualization modes
|
### Visualization modes
|
||||||
|
|
||||||
Mergely supports the following CodeMirror visualizations for [mode](codemirror.net/5/doc/manual.html#option_mode):
|
Mergely does not support any CodeMirror highlighting for different languages (xml, html, javascript etc.) out of the box.
|
||||||
|
You can compile your own Mergely-Version with support for the desired modes by adding them to diff-view.js. For example:
|
||||||
* go
|
```
|
||||||
* javascript
|
require('codemirror/mode/go/go.js');
|
||||||
* htmlmixed
|
require('codemirror/mode/javascript/javascript.js');
|
||||||
* markdown
|
require('codemirror/mode/htmlmixed/htmlmixed.js');
|
||||||
* python
|
require('codemirror/mode/markdown/markdown.js');
|
||||||
|
require('codemirror/mode/python/python.js');
|
||||||
|
```
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user