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

userlond
  • 3,632
  • 2
  • 36
  • 53
AlexC
  • 9,657
  • 17
  • 64
  • 98
  • 7
    Are you kidding me, this is a great question. And it answered my problem. Please reopen! – irperez Feb 08 '15 at 02:01
  • 1
    @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 http://stackoverflow.com/help/on-topic for more information. – Joeytje50 May 11 '15 at 08:25
  • 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) – Pimp Trizkit Sep 20 '15 at 23:27

1 Answers1

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

Giuseppe Bertone
  • 2,062
  • 15
  • 15
Emre Yazici
  • 10,136
  • 6
  • 48
  • 55
  • 2
    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 . – AlexC Nov 30 '09 at 16:38
  • Use Tidy options in Notepad++, it has different formatting options. – Emre Yazici Nov 30 '09 at 17:02
  • 6
    TextFX > TextFX HTML Tidy > Tidy Note: Subject to change. Not sure why this answer wasn't accepted. – Maleki Nov 23 '10 at 10:55
  • 29
    FYI TextFX in Notepad++ is a top level menu which is created after you install the TextFx plugin. – Perhentian Oct 10 '11 at 09:46
  • 15
    So, to be clear, this TextFX stuff is not "builtin" after all? – Zach Lysobey Sep 04 '12 at 21:30
  • TextFX comes with the default Notepad++ install. It regrettably contains no formatting (as in: changing indentation into a structured thing) – Frank N Nov 19 '12 at 16:59
  • 7
    If you don't see the menu, [follow these directions](http://stackoverflow.com/questions/12699833/textfx-menu-is-missing-in-notepad). – Christopher Jan 05 '13 at 19:43
  • 2
    HTML tidy didn't come with TextFX for me follow: http://stackoverflow.com/questions/6985637/notepad-htmltidy-unable-to-find-libtidy-dll – Jake Graham Arnold Mar 31 '14 at 10:33