mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Updated Code notes (markdown)
parent
45918e6db0
commit
9f57c07a2c
@ -11,15 +11,4 @@ This can be useful for few things:
|
|||||||
|
|
||||||
## Extra languages
|
## Extra languages
|
||||||
|
|
||||||
Trilium supports syntax highlighting for many languages, but by default displays only some of them (to reduce number of items). To add some extra languages create a JSON code note with label `codeMimeTypes`:
|
Trilium supports syntax highlighting for many languages, but by default displays only some of them (to reduce number of items). You can add extra languages in Options -> Code notes (available since Trilium 0.35).
|
||||||
|
|
||||||
```json
|
|
||||||
[
|
|
||||||
{ "mime": "text/x-ocaml", "title": "OCaml" },
|
|
||||||
{ "mime": "text/x-rsrc", "title": "R" }
|
|
||||||
]
|
|
||||||
```
|
|
||||||
|
|
||||||
To get correct mime type for your language see [list of language modes](https://codemirror.net/mode/) for CodeMirror (code editor component used in Trilium).
|
|
||||||
|
|
||||||
Note that this functionality is provided since Trilium v0.35. For changes to take effect, click on "run" button or reload Trilium's frontend with `CTRL-R`.
|
|
Loading…
x
Reference in New Issue
Block a user