Format HTML document
84,070
If you mean colorizing and formatting from "Format", Notpad++ has HTML tidying feature via Tidy2 plugin. Install the plugin with the Plugin Manager, and a new menu Tidy2 item will appears under the Plugins, and from there you can formatting HTML.
Also Netbeans IDE has formatting(ALT+F) feature for many languages (including PHP, HTML, CSS and JS).
Related videos on Youtube
Author by
AlexC
My name is Alex and I’m a web developer . I am from The Canada and have been building websites since 2005
Updated on April 16, 2020Comments
-
AlexC about 4 years
I like the feature in Visual Studio for formatting an HTML document (CTRL+K, CTRL+D).
Is there a plugin with the same functionality in any other (free) editors, e.g. Notepad++?
-
irperez about 9 yearsAre you kidding me, this is a great question. And it answered my problem. Please reopen!
-
Joeytje50 almost 9 years@irperez Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow. Please read stackoverflow.com/help/on-topic for more information.
-
Pimp Trizkit over 8 yearsBoth these comments are true! What a contradiction for SO... The best place for
our
questions.... is not the place for all of them. (Hence all the sister sites from here now, lol)
-
-
AlexC over 14 yearsI mean, when I have not so viewable code (no tabs, no space etc...), I don't want to spend time to understand that one, I want to format in normal viewable code .
-
Emre Yazici over 14 yearsUse Tidy options in Notepad++, it has different formatting options.
-
Maleki over 13 yearsTextFX > TextFX HTML Tidy > Tidy Note: Subject to change. Not sure why this answer wasn't accepted.
-
Perhentian over 12 yearsFYI TextFX in Notepad++ is a top level menu which is created after you install the TextFx plugin.
-
Zach Lysobey over 11 yearsSo, to be clear, this TextFX stuff is not "builtin" after all?
-
Frank Nocke over 11 yearsTextFX comes with the default Notepad++ install. It regrettably contains no formatting (as in: changing indentation into a structured thing)
-
Chris over 11 yearsIf you don't see the menu, follow these directions.
-
Jake Graham Arnold about 10 yearsHTML tidy didn't come with TextFX for me follow: stackoverflow.com/questions/6985637/…