mirror of
https://github.com/danbulant/monaco-yaml
synced 2026-06-19 22:41:39 +00:00
No description
This is a preparation for `monaco-editor@^0.22.0`. In this version the global `monaco` object was removed for ESM users. A choice was made to use `monaco-editor` imports, because this probably has best compatibility for most users. If users want to use `monaco-editor-core`, they will have to create an alias in their own build process. |
||
|---|---|---|
| .github/workflows | ||
| .husky | ||
| .vscode | ||
| examples | ||
| scripts | ||
| src | ||
| .editorconfig | ||
| .gitignore | ||
| .prettierignore | ||
| LICENSE.md | ||
| package.json | ||
| README.md | ||
| test-demo.png | ||
| tsconfig.esm.json | ||
| tsconfig.json | ||
| yarn.lock | ||
Monaco YAML
YAML language plugin for the Monaco Editor. It provides the following features when editing YAML files:
- Code completion, based on JSON schemas or by looking at similar objects in the same file
- Hovers, based on JSON schemas
- Validation: Syntax errors and schema validation
- Formatting
- Document Symbols
- Syntax highlighting
- Automatically load remote schema files (by enabling DiagnosticsOptions.enableSchemaRequest)
Schemas can also be provided by configuration. See here for the API that the JSON plugin offers to configure the JSON language support.
Installing
yarn add monaco-yaml
Both vs loader and ESM are supported.
See examples directory for esm and umd examples.
Development
git clone https://github.com/pengx17/monaco-yamlcd monaco-yamlyarn
