SuperHTML LSP VSCode ExtensionThis extension gives you diagnostics and autoformatting for HTML files. NOTE: you will need to get the For prebuilt binaries and more info: https://github.com/kristoff-it/superhtml DiagnosticsThis language server is stricter than the HTML spec whenever it would prevent potential human errors from being reported. As an example, HTML allows for closing some tags implicitly. For example the following snipped is correct HTML.
This will still be reported as an error by SuperHTML because otherwise the following snippet would have to be considered correct (while it's much probably a typo):
AutoformattingThe autoformatter has two main ways of interacting with it in order to request for horizontal / vertical alignment.
Example of rule #1Before:
After:
ReverseBefore:
After:
Example of rule #2Before:
After:
ReverseBefore:
After:
|