TiddlyWiki5 icon indicating copy to clipboard operation
TiddlyWiki5 copied to clipboard

[IDEA] Update to CodeMirror6

Open oflg opened this issue 2 years ago • 3 comments

Is there any plan to update to CodeMirror6? CodeMirror is being updated to v6, which enhances the touch screen functionality. Hopefully the CodeMirror plugin for TiddlyWiki will also be adapted to the update.

oflg avatar Nov 15 '21 07:11 oflg

CM6 is a completely different "beast". Its a rewrite from scratch. That also means that we will need to reimplement it on our side. It would be an interesting project but it will be a lot of work.

CM6 is still beta, which means, that there can be breaking changes.

The module system also is different to the existing one.

So there are a lot of changes to iron out and make it usable in "the TW way"

pmario avatar Nov 15 '21 09:11 pmario

I think cm5 is enough for code editing, and with WYSIWYG editor, fewer people will use code mirror in the future. So maybe this issue can be closed so we can have issue -1

linonetwo avatar May 31 '22 09:05 linonetwo

I'm have to say. WYSIWIG is not for me and it never will be. Eg. MS Word is wasting time, if you ever used FrameMaker in an environment, where efficient 3rd party translations are important.

I'd love to be able to use CM6 with TW. But it uses a completely new concept and a completely new parser generator dedicated to do code highlighting. The new parser is a very interesting topic on its own.

So I'd like to keep that one active.

pmario avatar May 31 '22 17:05 pmario