@nicktomlin/monaco-yaml
TypeScript icon, indicating that this package has built-in type declarations

2.6.0-beta • Public • Published

⚠️ This is a temporary fork of monaco-yaml that incorporates the updates in this ⚠️

use at your own risk!

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-yaml
  • cd monaco-yaml
  • yarn

A running example: demo-image

Credits

License

MIT

/@nicktomlin/monaco-yaml/

    Package Sidebar

    Install

    npm i @nicktomlin/monaco-yaml

    Weekly Downloads

    2

    Version

    2.6.0-beta

    License

    MIT

    Unpacked Size

    2.14 MB

    Total Files

    64

    Last publish

    Collaborators

    • nicktomlin