mirror of
https://github.com/zadam/trilium.git
synced 2024-12-26 09:12:08 +08:00
Updated Code notes (markdown)
parent
001948795f
commit
60c8180693
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
Trilium supports creating "code" notes, i.e. notes which contain some sort of formal code - be it programming language (C++, JavaScript), structured data (JSON, XML) or other types of codes (CSS etc.).
|
Trilium supports creating "code" notes, i.e. notes which contain some sort of formal code - be it programming language (C++, JavaScript), structured data (JSON, XML) or other types of codes (CSS etc.).
|
||||||
|
|
||||||
This can be useful for few things:
|
This can be useful for a few things:
|
||||||
|
|
||||||
* computer programmers can store code snippets as notes with syntax highlighting
|
* computer programmers can store code snippets as notes with syntax highlighting
|
||||||
* JavaScript code notes can be executed inside Trilium for some extra functionality
|
* JavaScript code notes can be executed inside Trilium for some extra functionality
|
||||||
|
@ -11,10 +11,10 @@ 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). You can add extra languages in Options -> Code notes.
|
Trilium supports syntax highlighting for many languages, but by default displays only some of them (to reduce the number of items). You can add extra languages in Options -> Code notes.
|
||||||
|
|
||||||
## Code blocks
|
## Code blocks
|
||||||
|
|
||||||
Alternative to the code note is a "code block" - feature of a text note which can add short snippets of code to the text editor. The disadvantage is that code blocks don't support syntax highlighting.
|
An alternative to the code note is a "code block" - feature of a text note which can add short snippets of code to the text editor. The disadvantage is that code blocks don't support syntax highlighting.
|
||||||
|
|
||||||
[[images/code-block.png]]
|
[[images/code-block.png]]
|
Loading…
Reference in a new issue