https://github.com/wherewhere/codemirror-lang-msil
A CodeMirror extension that provides IL syntax highlighting and language support.
https://github.com/wherewhere/codemirror-lang-msil
codemirror codemirror-mode codemirror6 msil
Last synced: 7 days ago
JSON representation
A CodeMirror extension that provides IL syntax highlighting and language support.
- Host: GitHub
- URL: https://github.com/wherewhere/codemirror-lang-msil
- Owner: wherewhere
- License: mit
- Created: 2026-03-29T05:24:01.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-06-07T07:42:57.000Z (2 months ago)
- Last Synced: 2026-06-07T09:20:49.563Z (2 months ago)
- Topics: codemirror, codemirror-mode, codemirror6, msil
- Language: TypeScript
- Homepage: https://wherewhere.github.io/codemirror-lang-msil/
- Size: 262 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# CodeMirror IL Language Support
A CodeMirror extension that provides IL syntax highlighting and language support.
### Usage
```ts
import { EditorState } from '@codemirror/state';
import { EditorView } from '@codemirror/view';
import { msil } from 'codemirror-lang-msil';
import { basicSetup } from 'codemirror';
new EditorView({
state: EditorState.create({
doc: `
.assembly A
{
}
.class public auto ansi abstract sealed beforefieldinit C
extends System.Object
{
.method public hidebysig static
void M () cil managed
{
.maxstack 8
ret
}
}
`,
extensions: [basicSetup, msil()],
}),
parent: document.querySelector('#editor'),
});
```