Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Format HTML document [closed]

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

like image 462
AlexC Avatar asked Nov 30 '09 16:11

AlexC


People also ask

How do you close a HTML document?

An opening tag begins a section of page content, and a closing tag ends it. For example, to markup a section of text as a paragraph, you would open the paragraph with an opening paragraph tag <p> and close it with a closing paragraph tag </p> (closing tags always proceed the element with a /).

What is format of HTML document?

An HTML file contains Hypertext Markup Language (HTML) that formats the structure of a webpage. It is stored in a standard text format and contains tags that define the page layout and content of the webpage, including the text, tables, images, and hyperlinks displayed on the webpage.

How do I open DOCTYPE in HTML?

All HTML documents must start with a <! DOCTYPE> declaration. The declaration is not an HTML tag. It is an "information" to the browser about what document type to expect.


1 Answers

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

like image 194
Emre Yazici Avatar answered Sep 25 '22 03:09

Emre Yazici