{"repo":"kristoff-it/superhtml","free":true,"listed":false,"github":"https://github.com/kristoff-it/superhtml","clone":"git clone https://github.com/kristoff-it/superhtml.git","description":"HTML Validator, Formatter, LSP, and Templating Language Library","language":"Zig","stars":1363,"topics":["language-server","language-server-protocol","lsp","lsp-server","templating-engine","zig-package","html","validator"],"license":"MIT","category":"dev-tools","readme_excerpt":"SuperHTML HTML Validator, Formatter, LSP, and Templating Language Library SuperHTML CLI Tool The SuperHTML CLI Tool offers validation and autoformatting features for HTML files. The tool can be used either directly (for example by running it on save), or through a LSP client implementation. [!WARNING] SuperHTML only supports HTML5 (the WHATWG living spec) regardless of what you put in your doctype (a warning will be generated for unsupported doctypes). [!WARNING] Templated HTML (Jinja2, Angular, Mustache, ...) is not yet supported when all validation rules are enabled, use --syntax-only (or the relative Extension Setting in VSCode) to limit validation to syntax errors to use SuperHTML with templated HTML documents. Compatibility with popular templating languages is being explored. Diagnostics SuperHTML validates not only syntax but also element nesting and attribute values. No other language server implements the full HTML spec in its validation code. Autoformatting The autoformatter has two main ways of interacting with it in order to request for horizontal / vertical alignment. 1. Adding / removing whitespace between the start tag of an element and its content. 2. Adding / removing whitespace between the last attribute of a start tag and the closing . [!TIP] Consider using superhtml fmt --check in your CI to enforce every change to be performed on normalized HTML files. This is a technique commonly used in Zig (and Go) for source code that can also help streamline frontend ","default_branch":null,"files":null,"tree":[],"storefront":"/r/kristoff-it","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kristoff-it/superhtml/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}