1
0
mirror of synced 2025-11-06 04:30:40 +08:00

Fix documentation for CM modes in README.md (#218)

This commit is contained in:
Moritz
2025-01-17 18:10:33 +01:00
committed by GitHub
parent da71745c38
commit b9aed167f3

View File

@@ -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