Support for csound in codemirror6
$ npm i @hlolli/codemirror-lang-csound codemirror --save
Add to extensions, example:
import { csoundMode } from '@hlolli/codemirror-lang-csound';
import { EditorView, basicSetup } from 'codemirror';
const editor = new EditorView({
extensions: [basicSetup, csoundMode({ fileType: 'csd' })],
parent: document.getElementById('editor')!,
});