Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

HTML Formatter of FreeFormatter

📅 2015-Jan-01 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

The HTML Formatter on the FreeFormatter webpage is a good tool if you want to quickly analyze some badly indented HTML code. Most editors (like Vim) can fix the indentation, but if multiple tags or blocks of HTML code are on a single line or broken up incorrectly, those cannot be fixed. This online formatter parses the entire file, builds an AST and then uses that to format the content.