Hi,
CodeMirror6 is great but requires a lot of reading and trying a gazillion versions, especially since there are all kinds of examples out there that use the /next/ version.
I created a simple fiddle of a cm editor that edits json5 content with simple css variable based color styling.
Just wanted to share that since it took me a long time to find something that actually works.
Best