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

Share:
84,070

Related videos on Youtube

AlexC
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, 2020

Comments

  • AlexC
    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
      irperez about 9 years
      Are you kidding me, this is a great question. And it answered my problem. Please reopen!
    • Joeytje50
      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
      Pimp Trizkit over 8 years
      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)
  • AlexC
    AlexC over 14 years
    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 .
  • Emre Yazici
    Emre Yazici over 14 years
    Use Tidy options in Notepad++, it has different formatting options.
  • Maleki
    Maleki over 13 years
    TextFX > TextFX HTML Tidy > Tidy Note: Subject to change. Not sure why this answer wasn't accepted.
  • Perhentian
    Perhentian over 12 years
    FYI TextFX in Notepad++ is a top level menu which is created after you install the TextFx plugin.
  • Zach Lysobey
    Zach Lysobey over 11 years
    So, to be clear, this TextFX stuff is not "builtin" after all?
  • Frank Nocke
    Frank Nocke over 11 years
    TextFX comes with the default Notepad++ install. It regrettably contains no formatting (as in: changing indentation into a structured thing)
  • Chris
    Chris over 11 years
    If you don't see the menu, follow these directions.
  • Jake Graham Arnold
    Jake Graham Arnold about 10 years
    HTML tidy didn't come with TextFX for me follow: stackoverflow.com/questions/6985637/…