@elastic/monaco-esql
Version:
Monaco editor Monarch language syntax definitions for ES|QL
27 lines (16 loc) • 716 B
Markdown
# ES|QL syntax grammar for Monaco editor
This package contains the ES|QL grammar form Monarch (the Monaco editor
grammar engine).
<img width="725" alt="image" src="https://github.com/user-attachments/assets/a725841e-68d6-4765-aa29-54a3062e6a3e" />
## Usage
To highlight ES|QL code in Monaco editor, you need to register ES|QL language
and its Monarch grammar:
```js
import { language as monarchLanguage } from "@elastic/monaco-esql/lib/monarch-shared";
monaco.languages.register({ id: "esql" });
monaco.languages.setMonarchTokensProvider("esql", monarchLanguage);
```
## Releasing
To release a new version, bump the `version` field in the `package.json` and add a `publish` label to the PR.
## License
MIT