This repository adds Cairo Language syntax highlighting to the Monaco Editor.
Add monaco-language-cairo NPM package to your dependencies:
$ yarn add monaco-language-cairo
Import registerCairoLanguageSupport
and apply to the monaco instance:
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api'
import { registerCairoLanguageSupport } from 'monaco-language-cairo'
// somewhere in the code
registerCairoLanguageSupport(monaco)
If you find any issues with this package or want to improve language tokenization, feel free to create a GitHub issue.
Licensed under the MIT License.