SmilyOrg / tw5-monaco

Monaco editor for TiddlyWiki
https://smilyorg.github.io/tw5-monaco/
26 stars 4 forks source link

VSCode plugin? #21

Open linonetwo opened 1 year ago

linonetwo commented 1 year ago

Can you pack the syntax highlighting & formatting to a vscode plugin?

linonetwo commented 1 year ago

Also, maybe you can provide preview by render the wikitext to HTML, and show HTML result in preview.

SmilyOrg commented 1 year ago

Hey, that would be cool, yeah! Although as far as I recall, I'm using the TiddlyWiki parser directly, so I'd have to extract it and include it in the plugin somehow 🤔

linonetwo commented 1 year ago

Okay, maybe you can try like https://github.com/tiddly-gittly/TidGi-Desktop/blob/master/src/services/wiki/wikiWorker.ts , just replace @tiddlygit/tiddlywiki to tiddlywiki

SmilyOrg commented 1 year ago

Hey, sorry for the super late reply! Running TiddlyWiki in the background would be an interesting way to do it yeah. I wonder if you have to run the full wiki for it to work though.

I assume if you just parse the one tiddler file it might be limited when it comes to custom tags and so on.

Unfortunately I don't really have a lot of time nowadays to look into this stuff, so I can't promise much, sorry 🫤