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 (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org



















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