weso / YASHE

Yet Another ShEx Editor.
http://www.weso.es/YASHE/
MIT License
19 stars 3 forks source link

swap between YASHE and e.g. JSON #186

Closed ericprud closed 1 year ago

ericprud commented 1 year ago

I want to use YASHE in shex-simple but the ShExC input area is also used for ShExJ and ShExR (maybe soon YAML -- ShExY). I found a CodeMirror demo that switches using editor.setOption("mode", MODE), but YASHE doesn't give me back the cm object (it's in a closure).

Have you played with this?

mistermboy commented 1 year ago

Hey Eric, sorry for the late response. So glad to hear that you want to use YASHE!!! :smiley: :tada:

I've created this pen as example for swapping between ShEx and JS. It was not working for me at the beginning as I was defining the JavaScript mode using the Codemirror Object instead of the YASHE object. Maybe that's also your problem.

Let me know if you are able to make it work.

ericprud commented 1 year ago

... and i'm sorry for my late response. The codepen is great. I'm hoping to switch before the ShEx F2F on 11-12 Feb but I've got a lot of other stuff to prepare for the F2F so we'll see.