scniro / react-codemirror2

Codemirror integrated components for React
MIT License
1.65k stars 192 forks source link

Using multiplex mode #282

Open dcoales opened 2 years ago

dcoales commented 2 years ago

Hi,

Does anyone have any examples of using multiplex mode with react-codemirror2. I have implemented my own mode with a custom tokenizer, and am using this with an editor which just parses this mode, but now I want to implement an editor which is primarily json with some embedded blocks which use my custom mode.

I've seen examples of this written directly in javascript but I'm not quite sure how to do this with the react-codemirror2 package.

Any help gratefully received.

Thanks David