Is there a proper TiddlyWiki5 syntax highlighter plugin out there? All I could find is the TiddlyWiki mode for CodeMirror plugin but it doesn't seem complete (has problems/limitations). Can it be created (in highlight.js plugin for example) or there are technical difficulties? And what about the mixed syntax: TiddlyWiki + html + css + js in one single tiddler? Is there someone more experienced that can give me a definitive answer to this problem? Thanks.
https://tiddlywiki.com/#Highlight%20Plugin
uups. You want a "TW wikitext syntax" highlighter. ... There isn't one atm
IMHO a TiddlyWiki syntax highlighter is absolutely vital for easing the reading of the code (especially complex one). I'm trying to find why such an useful (and basic) capability doesn't exist yet. I think the syntax highlighting for the TiddlyWiki syntax (the mixed/combined one) is far more important than is for the other languages (e.g. HTML, CSSS, JS) in the TiddlyWiki environment (context). Are there technical difficulties that make this a very hard or impossible achievement?
I'm trying to find why such an useful (and basic) capability doesn't exist yet
It may look like "basic", but it's far away from trivial. Implementing a mixed mode is even more complex, since an algorithm has to decide when it has to switch and which one to use. ...
The main problem is motivation and spare time. ... I did create the TWclassic syntax highlighter for codemirror, because at the time I did create it, I needed it. ... I did all my coding within the TW environment and I was still new to the TW wikitext. ... So highlighting was essential for me.
With TW5 most of my code is created with an external editor, which I switch to HTML highlighting, for TW wikitext. This mode is "just good enough". ... IMO that's the main reason, why I don't invest energy, to create a new TW5 syntax highlighter for CM 5. ...
This may change, if CM version 6 beta is released.
https://github.com/joshuafontany/VSCode-TW5-Syntax
https://vscode-docs.readthedocs.io/en/stable/extensions/install-extension/
:) Eventually going to look at using this within TW itself. Right now it is specialized for the GruvBox theme in VSCode (but has general syntax highlighting in all themes).
Best
Joshua Fontany
Most helpful comment
https://github.com/joshuafontany/VSCode-TW5-Syntax
https://vscode-docs.readthedocs.io/en/stable/extensions/install-extension/
:) Eventually going to look at using this within TW itself. Right now it is specialized for the GruvBox theme in VSCode (but has general syntax highlighting in all themes).
Best
Joshua Fontany