Code Mirror 6 Tiddlytext Highlighting

Hey there,
I tried a lot but I don’t get it. I imported $:/plugins/BTC/tiddlywiki-codemirror-6 into a singlefile wiki. The editor changed, which is great but I don’t get highlighting as expected. So I tried to import $:/plugins/BurningTreeC/tiddlywiki-codemirror/plugins/lang-tiddlywiki. After saving I get

Internal JavaScript Error

Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser

uncaught exception: Cannot find module named ‘$:/plugins/BurningTreeC/tiddlywiki-codemirror/lib/core.js’ required by module ‘$:/plugins/BurningTreeC/tiddlywiki-codemirror/plugins/lang-tiddlywiki/register.js’, resolved to $:/plugins/BurningTreeC/tiddlywiki-codemirror/lib/core.js

I just dragged it in the wiki, obviously that was wrong. How do I install it correctly?

Thanks for your help,
Ben

Hi @Ben

first of all, you’re mixing up two different plugins here.
The first one is an old codemirror-6 version.
The second one is the new version, but an outdated state.

Yes, there’s a bit of a mess with my CodeMirror 6 plugin versions.
I’ll point you shortly to the right page where to get the plugin.

Best wishes,
Simon

1 Like

Curious, is there a particular code block you use to test your Wikitext syntax handling? Like a “test suite” kinda thing? Ive been exploring alternative methods of wikitext highlighting, but familiar enough with wikitext to recognize a good test candidate