HtmlTidy
Tidy, clean and prettify your HTML code with this plugin for Sublime Text 2
Details
Installs
- Total 54K
- Win 27K
- Mac 21K
- Linux 6K
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
HTML code formatter for Sublime Text 2
Sublime Text 2
HTML Tidy
About
This is a Sublime Text 2 plugin allowing you to clean and tidy up your HTML code.
It uses a version of libtidy
, which comes bundled with PHP 5.
If your local PHP installation does not support the libtidy
extension it will fall back to the webservice on tidy.welovewordpress.de.
Dedicated to Jeffrey Way @envatowebdev
Usage
ctrl + shift + P
and type Tidy HTML
, or you can set up your own keybinding as shown below.
Customize
You can customize a growing number of options in HtmlTidy.sublime-settings.
Open Preferences -> Package Settings -> HtmlTidy -> Settings - Default
to see the available options.
Then open Preferences -> Package Settings -> HtmlTidy -> Settings - User
(which will be empty on the first time), copy the default settings and start to modify them.
To set up a custom keybinding, you can insert the following line into your Default.sublime-keymap
:
{ "keys": ["ctrl+alt+t"], "command": "html_tidy"}
Requirements
On OS X and Linux you need to have PHP5 installed at /usr/bin/php
. This should be the case at nearly every modern system.
For Windows you need to have PHP5 installed somewhere where HtmlTidy can find it, i.e. in your PATH
. If you can run php.exe -v
from the windows command line, all should be fine. If not, and you are sure you have PHP installed, please file an issue.
Install
Package Control
The easiest way to install this is with Package Control.
- If you just went and installed Package Control, you probably need to restart Sublime Text 2 before doing this next bit.
- Bring up the Command Palette (Command+Shift+p on OS X, Control+Shift+p on Linux/Windows).
- Select “Package Control: Install Package” (it'll take a few seconds)
- Select HtmlTidy when the list appears.
Package Control will automatically keep HtmlTidy up to date with the latest version.
If you have some problems or improvements with it, contact me via GitHub.