console.log("test")
What highlight framework does this use and how can I contribute my own? Is it tree-sitter? I see that it is hljs… uhm
is there a tree-sitter version? ![]()
The discussion centers on the syntax highlighting framework used for code blocks in Discourse and whether it supports tree-sitter. karl-police initiates the query by asking if the current implementation uses tree-sitter or hljs, noting they identified hljs in use. They also inquire about the possibility of contributing custom highlighting rules and if a tree-sitter version is available.
In response, NateDhaliwal does not directly address the underlying framework architecture (tree-sitter vs. hljs) or how to extend it with custom languages. Instead, NateDhaliwal suggests a Thene Component designed for users who primarily want to change the color scheme of code blocks. The linked resource, a Codeblock Theme Picker, is recommended for visual customization, but the original question regarding the engine’s architecture and extensibility remains unanswered in the provided text.
console.log("test")
What highlight framework does this use and how can I contribute my own? Is it tree-sitter? I see that it is hljs… uhm
is there a tree-sitter version? ![]()
If you want different colors, check out this Thene Component: