Format HTML document [closed]
Asked Answered
A

1

84

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

Antione answered 30/11, 2009 at 16:22 Comment(3)
Are you kidding me, this is a great question. And it answered my problem. Please reopen!Import
@Import 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.Sateen
Both 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)Frankforter
S
97

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).

Sectarianize answered 30/11, 2009 at 16:29 Comment(8)
I 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 .Antione
Use Tidy options in Notepad++, it has different formatting options.Sectarianize
TextFX > TextFX HTML Tidy > Tidy Note: Subject to change. Not sure why this answer wasn't accepted.Divide
FYI TextFX in Notepad++ is a top level menu which is created after you install the TextFx plugin.Fessler
So, to be clear, this TextFX stuff is not "builtin" after all?Pyrethrum
TextFX comes with the default Notepad++ install. It regrettably contains no formatting (as in: changing indentation into a structured thing)Radom
If you don't see the menu, follow these directions.Monroy
HTML tidy didn't come with TextFX for me follow: #6986137Solleret

© 2022 - 2024 — McMap. All rights reserved.