# prettyhtml **Repository Path**: mirrors_addons/prettyhtml ## Basic Information - **Project Name**: prettyhtml - **Description**: 💅 The formatter for the modern web https://prettyhtml.netlify.com/ - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-03 - **Last Updated**: 2025-08-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README  [](https://dev.azure.com/prettyhtml/Prettyhtml/_build/latest?definitionId=1) [](https://lernajs.io/) [](https://badge.fury.io/js/%40starptech%2Fprettyhtml) Opinionated general formatter for your Angular, Vue, Svelte or pure HTML5 templates. Try it on the [playground](https://prettyhtml.netlify.com/). > **Project status:** Unfortunately, This project lacks maintainers. Prettier has landed HTML support in 1.15.0. I recommend it to use it if it matches your requirements. If you want to contribute to this project, feel free to create a PR/Issue. ## Features - Indentation based primary on node-level + tag length, not content. - Can parse Angular, Vue or HTML5 templates. - Formats embedded content with [prettier](https://github.com/prettier/prettier) with respect to your local settings. - Doesn't change the behaviour of your attributes and tags. - Remove all superfluous white-space. There are two additional rules: - Collapses multiple blank lines into a single blank line. - Empty lines at the start and end of blocks are removed. (Files always end with a single newline, though.) - Enforce consistent output of your HTML. - Follows the same option [philosophy](https://prettier.io/docs/en/option-philosophy.html) as prettier. ## Framework specific features | Feature | Framework | | ------------------------------- | --------- | | HTML5 | all | | Self-closing custom elements | vue | | Self-closing none void elements | vue | | Case-sensitive attributes | angular | | Case-sensitive elements | angular | ## Packages - [prettyhtml](/packages/prettyhtml) CLI and API. - [prettyhtml-formatter](/packages/prettyhtml-formatter) Formatter. - [prettyhtml-hast-to-html](/packages/prettyhtml-hast-to-html) Stringifier. - [prettyhtml-hastscript](/packages/prettyhtml-hastscript) Hyperscript compatible DSL for creating virtual HAST trees. - [prettyhtml-sort-attributes](/packages/prettyhtml-sort-attributes) Sort attributes alphabetically. - [prettyhtml-quick](/packages/prettyhtml-quick) Formats your changed files based on Git. - [webparser](/packages/webparser) Optimized HTML parser for formatters - [expression-parser](/packages/expression-parser) Framework agnostic template expression parser. - [rehype-webparser](/packages/rehype-webparser) Adapter between HTML parser and rehype. - [rehype-minify-whitespace](/packages/rehype-minify-whitespace) Collapse whitespace. - [hast-util-from-parse](/packages/hast-util-from-webparser) Transform [webparser](/packages/webparser) AST to HAST. ## Ignore element Adding this flag before a tag will preserve from whitespace and/or attribute wrapping. 1. Preserve from indentation, whitespace and attribute wrapping ```html
``` 2. Preserve only from whitespace processing. This excludes indentation. ```html