I’m sure this is has been thought about already, but what is involved in making a syntax highlighter for the forum for .tid files? I know there is tid highlighter for VSCode, but I have no idea if any part of that is applicable to use on the forum.
This is default highlighting using the ```...``` code fence:
highlight.js doesn’t have a highlighter for tiddler files. … It is a completly different mechanism than used by VSCode.
The problem with TW syntax is, that we allow HTML as a subset of the wiki language and we have our own HTML-like widget syntax.
BUT
A good starting point would be the markdown highlighter defined for highlightjs. … It uses the html-highlighter as a submodule and defines the rest of the markdown syntax with regexp based rules.
The widget-syntax will be tricky but similar to the html/xml highlighter. … So we will need to create a 3 in 1 highlighter.