Thank you - I think I do need to define some custom tags because I want to distinguish chords from one another and set the colors programmatically. I’ve read through the various docs on highlighting and StreamLanguage but I haven’t found the incantation for how I might go about defining these tags in a simpleMode
export + StreamLanguage.define(mySimpleMode)
use pattern … I tried dropping tokenTable
in my simpleMode object and highlightStyle
there, but if there’s an example out there that comes to mind that would be lovely.
aka I’d found CodeMirror 6: stream-syntax with custom tags but that last comment is missing the context I think I’d need and that syntax for tokenTable
isn’t what simpleMode()
seems to want