Indent/Prettify HTML File in Notepad++


There are multiple ways you can intent (format or prettify) the content of an HTML file in Notepad++ text editor, let us take a look at a few of the plugins

1. Using XML Tools

As HTML is a special form of XML you can make use of the XML Tools to format your HMTL code.

Go to Plugins -> XML Tools -> Pretty Print

How to install XML Tools in Notepad++


2. Using "Indent by Fold" Tools

Go to Plugins -> Indent by Fold -> Reindent File

Note: You will need to install the "Indent by Fold" plugin using the Plugin Admin to use it.
Before Indent HTML file in Notepad++
Before Indent HTML file in Notepad++
After Indent HTML file in Notepad++
After Indent HTML file in Notepad++
-


Have Questions? Post them here!

Topics Coverage:


🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.

Follow Us: GitHub | Facebook | Twitter | Instagram