mirror of
https://github.com/zadam/trilium.git
synced 2024-12-26 01:01:26 +08:00
Updated Code notes (markdown)
parent
45918e6db0
commit
9f57c07a2c
1 changed files with 1 additions and 12 deletions
|
@ -11,15 +11,4 @@ This can be useful for few things:
|
|||
|
||||
## 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`:
|
||||
|
||||
```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`.
|
||||
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).
|
Loading…
Reference in a new issue