Superhtml

screenshot of Superhtml

HTML Validator, Formatter, LSP, and Templating Language Library

Overview

SuperHTML is a powerful CLI tool designed to enhance the HTML development workflow by providing validation, formatting, and language server protocol (LSP) capabilities. Tailored specifically for HTML5, this tool is ideal for developers looking to streamline their coding experience and enforce best practices. Its ability to validate not only syntax but also nesting and attribute values ensures that your HTML code remains clean and compliant with the latest web standards.

Whether you're working on a personal project or contributing to a larger codebase, SuperHTML's autoformatting and compatibility with various popular editors make it a versatile addition to any developer's toolkit.

Features

  • HTML5 Support: SuperHTML strictly adheres to the WHATWG living HTML5 specification, ensuring that your files are validated against the latest standards, regardless of doctype declarations.

  • Advanced Diagnostics: The tool provides comprehensive validation that checks for syntax issues as well as proper element nesting and attribute values, setting it apart from other language servers.

  • Flexible Autoformatting: Users can easily format HTML files with horizontal and vertical alignment options, helping to maintain a consistent code style across projects.

  • Integration with Popular Editors: SuperHTML seamlessly integrates with editors like VSCode and Neovim, allowing easy configuration and setup to enhance your coding environment.

  • Support for Templated HTML: While full functionality for templated HTML isn't supported yet, users can still limit validation to syntax errors, enabling development with frameworks like Jinja2 and Angular.

  • CI Compatibility: Developers can incorporate the tool into their continuous integration pipelines using commands like superhtml fmt --check to ensure that only normalized HTML is committed.

  • Community Contributions: SuperHTML encourages contributions to enhance its documentation and support for various editors, fostering a collaborative development environment.