by bloaf · 6y ago · 0 comments
If the enrichment rules are known ahead of time, there is no reason you can't just "hard code" the colors or formats into the document.
The one and only place where I want dynamic syntax highlighting is on "pages" where content might change, such as in-browser code interpreters. This kind of thing can't be done with static syntax highlighting: https://play.rust-lang.org/