Nested Codemirror?

Is it possible to have nested CodeMirror6 instances? The outermost instance for basic markdown and then for the codeblocks another instance with gutters etc? Or maybe another editor?

In theory, yes (using replacing widget decorations), but I don’t think anyone has done this yet and you’re likely to run into some DOM nesting issues with styling and event handling. But feel free to report any such problems, and I’ll see if I can address them.

Okay! But at least your reply sounds like it’s not a bad idea in the first place? I was previously considering having multiple instances of CM flat next to each other, but that didn’t seem like a good idea either and I’d have to stitch things back again.

Gonna read up on widget decorations now. Thanks so far!