debuging highlighting errors in Codemirror

Codemirror 6 currently only has one readily available theme (one dark), so, it requires devs to craft their own themes if they want something different, however, the system for creating themes is rather complex and is really difficult to debug, so, does anyone have any tips?

There’s a short introduction to writing a theme at CodeMirror Styling Example

Sorry, the problem isn’t the styling it’s the highlighting. I am finding it difficult to port a highlight theme to CodeMirror 6, and I’m wondering if you have any tips for making the port easier.

That too is discussed in the page I linked. You could start by copying the default highlight style and adjusting the colors.

1 Like