Looks like defineMode is supported and defineSimpleMode is a nice simple syntax / addon.
I can send a PR but it does mean including the addon - any objections?
this requires an addon so going to close here as it's doable by requiring the addon and codemirror in a separate file before setting mode with react-codemirrror2
Looks like
defineMode
is supported anddefineSimpleMode
is a nice simple syntax / addon. I can send a PR but it does mean including the addon - any objections?