From 4e5f80bdc76661085553a38808151282444d0aa9 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 30 Oct 2025 09:27:13 +0200 Subject: [PATCH] Updated Code notes (markdown) --- Code-notes.md | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/Code-notes.md b/Code-notes.md index a621dca..1f72b16 100644 --- a/Code-notes.md +++ b/Code-notes.md @@ -1,20 +1 @@ -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 a few things: - -* computer programmers can store code snippets as notes with syntax highlighting -* JavaScript code notes can be executed inside Trilium for some extra functionality - * we call such JavaScript code notes "scripts" - see [[Scripts]] -* JSON, XML etc. can be used as storage for structured data (typically used in conjunction with scripting) - -[[images/code-note.png]] - -## Extra languages - -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 - -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]] \ No newline at end of file +See https://docs.triliumnotes.org/user-guide/note-types/code. \ No newline at end of file