How to 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



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++


This is not an AI-generated article but is demonstrated by a human on Windows 11 device.

Please support independent contributors like Code2care by donating a coffee.

Buy me a coffee!

Buy Code2care a Coffee!
-

Facing issues? Have Questions? Post them here! I am happy to answer!


Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

Copyright © Code2care 2023 | Privacy Policy | About Us | Contact Us | Sitemap