monaco-html

HTML plugin for the Monaco Editor

Usage no npm install needed!

<script type="module">
  import monacoHtml from 'https://cdn.skypack.dev/monaco-html';
</script>

README

Monaco HTML

HTML language plugin for the Monaco Editor. It provides the following features when editing HTML files:

  • Code completion
  • Formatting
  • Document Highlights
  • Link detection
  • Syntax highlighting

Internally the HTML plugin uses the vscode-html-languageservice node module, providing the implementation of the functionally listed above. The same module is also used in Visual Studio Code to power the HTML editing experience.

Issues

Please file issues concering monaco-html in the monaco-editor repository.

Installing

This npm module is bundled and distributed in the monaco-editor npm module.

Development

  • git clone https://github.com/Microsoft/monaco-html
  • cd monaco-html
  • npm install .
  • npm run watch
  • open $/monaco-html/test/index.html in your favorite browser.

License

MIT