Sublime Text2 formatting Hmtl/css/js plugin html-css-js prettify

Source: Internet
Author: User

Before formatting used Jsformat, today on GitHub found a better plug-in Html-css-js prettify, the specific address https://github.com/victorporof/ Sublime-htmlprettify, installing the plugin requires the installation of node. js, as follows:

1. Download node. js, address http://nodejs.org/download (My Computer Win8 64)

Ctrl+shift+p in 2.Sublime, enter IP:

3. Click the install package and search for Html-css-js prettify:

4. After the installation is not normal use, need to set a path, right-click on the page more than a html/css/js prettiy option, set the node path:

Set the following to change the installation path of node according to your operating system

{  //Simply using ' node ' without specifying a path sometimes doesn ' t work:(  //Https://github.com/victorporof/Sub Lime-htmlprettify#oh-noez-command-not-found  //http://nodejs.org/#download  "Node_path": {    "Windows": "D:/program Files/nodejs/node.exe",    "Linux": "/usr/bin/nodejs",    "OSX": "/usr/local/bin/node"  },  Automatically format when a file is saved.  " Format_on_save ": false,  //Only format the selection if there ' s one available.  " Format_selection_only ": True,  //Log The settings passed to the Prettifier from '. Jsbeautifyrc '.  " Print_diagnostics ": true}

Sublime Text2 formatting Hmtl/css/js plugin html-css-js prettify

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.