today on GitHub, inadvertently find Victorporof share htmlpretty plug-in, special recommendation;
Let's see how he describes Htmlpretty:
This is a Sublime Text 2 and 3 plugin allowing your to format your HTML, CSS, JavaScript and JSON code. It uses a set of nice beautifier scripts made by Einar Lielmanis. The formatters is written in JavaScript, so you ll need something (node. js) to interpret JavaScript code outside the brow Ser.
This would work with either HTML, CSS, JavaScript and JSON files.
After the installation test, the effect is very good, the installation process is briefly described as follows:
- In sublime text, press ctrl+shift+p to bring up the command panel;
- Enter install to bring up the Install Package option and enter;
- Enter pretty, and select html-css-js prettify in the list and enter to install
Quick ways to use:
Example:
Open a compressed Jquery.min.js file and press ctrl+shift+h
In situ: http://jokerliang.com/html-css-javascript-and-json-code-formatter-for-sublime-text-2-and-3.html
Sublime Text plugin: Html+css+javascript+json quick format [go]