I wanted to share a project I’ve been working on using CodeMirror and Lezer. It’s a language support package for the Graphviz DOT language.
You can see it in action as part of my project Viz.js.
And the package itself: lang-dot
I know of at least one other package like this, cm-lang-dot. However, I wanted to make use of parseMixed
and Lezer’s XML parser for HTML-like labels, which wouldn’t really be supported by the grammar in that package.
I’m planning to publish it to NPM soon, but I thought it might be helpful to post it here beforehand. Thanks for taking a look!