Skip to content

gaybro8777/vscode-html-languageservice

 
 

Repository files navigation

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

About

Language services for HTML

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 53.9%
  • TypeScript 46.1%