Hi there, thanks a bunch for putting this together. I was wondering, would you mind auto instantiating this mode with the CodeMirror instance similar to how the other modes work? Here is an example:
The idea is, that all you need to do is include the mode after CodeMirror itself and it auto registers itself with CodeMirror. I'm doing this right now with the following small changes to your code:
Hi there, thanks a bunch for putting this together. I was wondering, would you mind auto instantiating this mode with the CodeMirror instance similar to how the other modes work? Here is an example:
https://github.com/codemirror/CodeMirror/blob/master/mode/css/css.js#L10
The idea is, that all you need to do is include the mode after CodeMirror itself and it auto registers itself with CodeMirror. I'm doing this right now with the following small changes to your code:
I'm guessing this code was originally generated by rollup. I'm thinking it might need a commonjs rollup config alongside the umd to accomplish this?
Thanks again :)