Hi!

I've thrown together a quick extension for Visual Studio Code to enable 
syntax highlighting. I have not yet added it to the MS Marketplace, so you 
cannot find it through VSCode's Extensions tab quite yet...

Find the github repo here:

https://github.com/joshuafontany/VSCode-TW5-Syntax

Clone it to your Extensions folder as described here: 
https://vscode-docs.readthedocs.io/en/stable/extensions/install-extension/

---

I use Bob on Node.js and author plugins as folders separate from my 
tiddlywiki and wikis directories. This means I am often tweaking or editing 
UI tiddlers, etc, etc inside of plugins while the server is down, then 
retsart it to run tests, etc. Syntax highlighting is going to be a huge 
benefit to this workflow.


At this time I am mainly relying on a "named" syntax-highlighiting grammar 
built for the Atom text editor. This grammar is fairly well developed, but 
can totally be improved as I learn more about syntax highlighting.,


There may be another way to set this up, instead of making up a language 
named "TiddlyWiki5" I could "inject" the wikitext rules into the base HTML 
context. Then setup the field-contexts to be pared as HTML(Extended).... 


But for now this one that defines rules for most of the wikitext as a new 
language will do.

Best,

Joshua Fontnay

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/8d6f3880-4af2-4e65-8b33-2214feb5fa2d%40googlegroups.com.

Reply via email to