Subline Text 3 and its plugins on Windows7

Source: Internet
Author: User

1,: HTTP://WWW.SUBLIMETEXT.COM/3

Please select the appropriate installation version according to your platform.

When the installation is complete, set the TAB key to 4 spaces (Preferences-->setings-user):

{    "tab_size": 4,    "translate_tabs_to_spaces": True,    "font_size": One,    "ignored_packages":    [        "Vintage"    ]}

2. Install the plug-In Manager (package control)

Click the view (view)-->show Console menu on the menu bar, then paste the Python code into your text console,
Press ENTER to wait a few minutes.

Python code:

ImportUrllib.request,os,hashlib; h ='eb2297e1a458f27d836c04bb0cbaf282'+'d0e7a3098092775ccb37ca9d6b2e4b7d'; PF ='Package Control.sublime-package'; IPP = Sublime.installed_packages_path (); Urllib.request.install_opener (Urllib.request.build_opener (Urllib.request.ProxyHandler ())); by = Urllib.request.urlopen ('http://packagecontrol.io/'+ Pf.replace (' ','%20'). read (); DH = hashlib.sha256 (by). Hexdigest ();Print('Error validating download (got%s instead of%s), please try manual install'% (DH, h))ifDH! = hElseOpen (Os.path.join (IPP, PF),'WB'). Write (by)

The above installation method is relatively simple, there are manual installation methods, please visit the official website: https://packagecontrol.io/installation#st3

3. Install Emmet plugin (very convenient for writing HTML code)

Using the example
Example 1: Enter html:5 and press the TAB key to get the following code:

<!DOCTYPE HTML><HTMLLang= "en"><Head><MetaCharSet= "UTF-8"><title>Document</title></Head><Body></Body></HTML>

Example 2: Enter div#test and press the TAB key to get the following code:

<id= "Test"></div>

Example 3: Enter div.test*5 and press the TAB key to get the following code:

<Divclass= "Test"></Div><Divclass= "Test"></Div><Divclass= "Test"></Div><Divclass= "Test"></Div><Divclass= "Test"></Div>

Example 4: Enter div>h2+ul>li*5 and press the TAB key to get the following code:

<Div>    <H2></H2>    <ul>        <Li></Li>        <Li></Li>        <Li></Li>        <Li></Li>        <Li></Li>    </ul></Div>

A more detailed introduction to use: http://www.iteye.com/news/27580

Having said so many good things, how do I install it?

Press the CTRL+SHIFT+P key combination, or click Preferences-->package Control

such as

Enter the install package

Are you sure

Input Emmet

After the installation is successful, you are prompted to restart the editor and continue with the installation.

4, install less, SASS plug-in

To install the SASS plug-in as an example, according to the steps to install the Emmet plug-in, we can install SASS first, then install SASS Build,


Less installs the same, first installs less, then installs less Build.

5. Install Html-css-js prettify plug-in

Plug-in installation similarly above, here will encounter a problem, when executing pretty Code, will pop up the following box:

Hint, can not find the Nodejs installation path (need to install Nodejs), click OK, modify it,

Note : When installing the plug-in, sometimes it is very slow, even hint:thare is no packages available for installation

Workaround: Need to include in the hosts text of the computer: IPV4 address sublime.wbond.net, such as: 192.168.1.51 sublime.wbond.net

For more information, see: Http://stackoverflow.com/questions/25105139/sublime-text-2-there-are-no-packages-available-for-installation

Reprint please indicate the source, thank you!

Subline Text 3 and its plugins on Windows7

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.