The lsp4xml is a XML language specific implementation of the Language Server Protocol and can be used with any editor that supports the protocol, to offer good support for the XML Language. The server is based on:
- Eclipse LSP4J, the Java binding for the Language Server Protocol.
- Xerces to manage XML Schema validation, completion and hover
- textDocument/codeAction.
- textDocument/completion.
- textDocument/documentHighlight.
- textDocument/documentLink.
- textDocument/documentSymbol.
- textDocument/foldingRanges.
- textDocument/formatting.
- textDocument/hover.
- textDocument/rangeFormatting
- textDocument/rename.
See screenshots in the wiki.
See the changelog for the latest release.
The XML Language Server is extensible with plugin kind (with SPI). Here existings extensions:
- content model to provide completion, validation, hover based on XML Schema.
- emmet to provide completion based on Emmet.
- Clone this repository
- Open the folder in your terminal / command line
- Run
./mvnw clean verify
(OSX, Linux) ormvnw.cmd clean verify
(Windows) - After successful compilation you can find the resulting
org.eclipse.lsp4xml-all.jar
in the folderorg.eclipse.lsp4xml/target
Here client which consumes this XML Language Server:
- Eclipse with lsp4e-xml
- VSCode with vscode-xml