| Crates.io | html-languageservice |
| lib.rs | html-languageservice |
| version | 0.12.0 |
| created_at | 2023-12-04 08:42:33.664143+00 |
| updated_at | 2025-08-01 02:50:24.265259+00 |
| description | The basics of an HTML language server. |
| homepage | https://github.com/ren-wei/html-languageservice |
| repository | https://github.com/ren-wei/html-languageservice |
| max_upload_size | |
| id | 1057421 |
| size | 1,718,097 |
The project is a rewrite of vscode-html-languageservice use
rust. It has all the features of the original project while still having higher performance.
This project is a collection of features necessary to implement an HTML language server.
completion feature activatehover feature activateformatter feature activatehighlight feature activatelinks feature activatesymbols feature activatefolding feature activateselection_range feature activatecompletion feature activatecompletion feature activaterename feature activatematching_tag_position feature activatelinked_editing feature activateMake sure you activated the full features of the html-languageservice crate on Cargo.toml:
html-languageservice = { version = "0.6.1", features = ["full"] }
You can also activate only some of the features you need on Cargo.toml:
html-languageservice = { version = "0.6.1", features = ["completion", "hover"] }
Create the HTMLLanguageService struct in first.
Second, You need to prepare: document and position.
Then, parse document as html_document you need to HTMLDataManager, tags, attributes, and attribute value data are stored in the HTMLDataManager.
Finally, call a function or method to get the result.
For more see docs.rs