Sublime Text Plugin - HTML-CSS-JS Prettify

HTML-CSS-JS Prettify is a Sublime Text 2 and 3 plugin allowing you to format your HTML, CSS, JavaScript and JSON code. It uses a set of nice beautifier scripts made by Einar Lielmanis. The formatters are written in JavaScript, so you’ll need something (node.js) to interpret JavaScript code outside the browser.

This will work with either HTML, CSS, JavaScript and JSON files.


Command Shift P → Install Package → HTML-CSS-JS Prettify

Solve Error Node.js was not found in the default path. Please specify the location.

Install Node

$ brew install node

Modify HTMLPrettify.sublime-settings file:

"node_path": {
    "windows": "C:/Program Files/nodejs/node.exe",
    "linux": "/usr/bin/nodejs",
    "osx": "/usr/local/bin/node"

Edit like this

"node_path": {
    "osx": "/usr/local/Cellar/node/0.12.1/bin/node"
0.00 avg. rating (0% score) - 0 votes