Language services for HTML
Clone or download

README.md

vscode-html-languageservice

HTML language service extracted from VSCode to be reused, e.g in the Monaco editor.

npm Package NPM Downloads Build Status

Why?

The vscode-html-languageservice contains the language smarts behind the HTML editing experience of Visual Studio Code and the Monaco editor.

  • findDocumentHighlights provides the highlighted symbols for a given position.
  • doComplete provides completion proposals for a given location.
  • setCompletionParticipants allows participant to provide suggestions for specific tokens.
  • doHover provides hover information at a given location.
  • format formats the code at the given range.
  • findDocumentLinks finds all links in the document.
  • findDocumentSymbols finds all the symbols in the document.
  • htmlLanguageService.getFoldingRanges returning folding ranges for the given document

Installation

npm install --save vscode-html-languageservice