Replies: 1 comment
-
Hi @sv158! I'm Dosu and I’m helping the Trilium team. Currently, Trilium's syntax highlighting for code notes is built-in and uses highlight.js. Adding support for new languages isn't user-configurable through the UI or config notes—doing so requires editing source files (like If you want to experiment, you can look into the process described in the PRs for swapping in a custom CKEditor build and updating mime types, but this is a developer-level workflow and not exposed as a user-facing feature [source]. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi👋 I saw there are some issues asking for support for specific language syntax, and the commit log shows updates in
mime_types.ts
.I agree it's good to add more support for mainstream languages. However, for those programming languages still in development, it may not be worth hardcoding them into the languages list.
I noticed that the config page is also a
note
(despite it can not export as PDF), so I wonder if it's possible to make the syntax highlighting configuration more flexible🤔?In Tiddlywiki, there are many ways to achieve this. I'm new to Trilium, and I appreciate any replies and help🐣
Beta Was this translation helpful? Give feedback.
All reactions