CodeMirror use multiple languages (but not at once)
I’m making a CodeMirror editor that needs to support both HTML & JS, but not at once — it’s an either-or situation.
CodeMirror JSX highlighting broken
I’m trying to set up CodeMirror v6, but it seems the syntax highlighting is completely broken for JSX. End tags are given different classes from start tags, text content isn’t differentiated from tags, and there’s no way to easily extend the base theme to correct this — I’m not going to re-implement an entire theme myself.
what is the usage section on a codemirror 6 language pack?
If you go to (eg) https://github.com/exercism/codemirror-lang-elixir?tab=readme-ov-file you’ll find: