SmilyOrg / tw5-monaco

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

Use parser in https://github.com/Gk0Wk/TW5-CodeMirror-Enhanced #1

Closed linonetwo closed 2 years ago

linonetwo commented 2 years ago

It has a tw syntax highlighter.

And can you provide [[ complete and / menu like it?

linonetwo commented 2 years ago

Do you think monaco can make WYSIWYG  editor like https://github.com/laobubu/HyperMD ?

SmilyOrg commented 2 years ago

Hey, that looks pretty cool, I'd have to check out how it handles syntax highlighting.

It has a tw syntax highlighter.

Check out the latest version, I've added something like that.

And can you provide [[ complete and / menu like it?

Yes, that's definitely possible and I'm looking into it.

Do you think monaco can make WYSIWYG editor like https://github.com/laobubu/HyperMD ?

Cool editor! I'm not sure actually, I googled a bit and it doesn't seem like you can really hide characters. Monaco was really made for editing code specifically, so WYSIWYG possibilities are limited. There are lots of ways to add things to the text though, so that might be interesting in a different way. See Monaco playground.

The compromise I made in the highlighting was to just to fade the characters into the background more so they don't stand out as much.

For more WYSIWYG style editing, I played around with Editor.js as part of another plugin, but it's a lot trickier, so I didn't get that far.

linonetwo commented 2 years ago

I'm creating https://github.com/tiddly-gittly/slate-write as a view-template editor.

I think I will use monaco in edit mode, and react-slate in view mode in the future.