G-code syntax highlighting: register gcode grammar in code_note_highlight; add hljs-name/attr colors to theme

This commit is contained in:
trilium-share-gruvbox
2026-09-07 16:58:48 +02:00
parent 3f9a502496
commit 6a818442be
2 changed files with 37 additions and 1 deletions
+6 -1
View File
@@ -1787,4 +1787,9 @@ html.theme-light .mermaid svg .cluster .nodeLabel,
html.theme-light .mermaid svg .cluster-label text {
fill: #556753 !important;
color: #556753 !important;
}
}
/* ---------- G-code / Zusatz-Scopes (name = G/M-Codes, attr = Parameter) ---------- */
.hljs-name { color: #E1CE98; }
.hljs-attr { color: #77838a; }
html.theme-light .hljs-name { color: #4c6c94; }
html.theme-light .hljs-attr { color: #556753; }