About sublime and Zen coding use

Source: Internet
Author: User
Tags sublime text

Installation:

The sublime2 is used:

1. Outgoing command line: Ctrl + '

2. Enter sublime2 in the command line: import urllib2,os,hashlib; h = ' eb2297e1a458f27d836c04bb0cbaf282 ' + ' d0e7a3098092775ccb37ca9d 6b2e4b7d '; PF = ' package control.sublime-package '; IPP = Sublime.installed_packages_path (); Os.makedirs (IPP) if not os.path.exists (IPP) else None; Urllib2.install_opener (Urllib2.build_opener (urllib2. Proxyhandler ())); by = Urllib2.urlopen (' http://packagecontrol.io/' + pf.replace (', '%20 ')). read (); DH = hashlib.sha256 (by). Hexdigest (); Open (Os.path.join (IPP, PF), ' WB '). Write (by) if DH = = h else None; Print (' Error validating download (got%s instead of%s), please try manual install '% (DH, h) if DH! = H Else ' please rest Art Sublime Text to finish installation ')

If it is Sublime3:

import urllib.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)) if DH! = H Else Open (Os.pat H.join (IPP, PF), ' WB '). Write (by)

Restart Sublime. Let it complete the installation

3.ctrl+shift+p Outbound Installation Expansion pack

4. Enter the install option as follows:

5. Input Emmet:Emmet installation

Outbound Zen Coding Ctrl+shift+enter

Usage rules

When writing code using zencoding, you need to follow some abbreviation rules:
    • E
      The element name (Div, p);
    • E#id
      Elements with ID (div#content, P#intro, Span#error);
    • E.class
      The Elements with Class (Div.header, P.error), ID and class can be written in a row, div#content.column
    • E>n
      Child elements (Div>p, Div#footer>p>span)
    • E*n
      Multiple elements (Ul#nav>li*5>a)
    • E+n
      Multi-Item Element
    • E$*n
      Elements with an ordinal

About sublime and Zen coding use

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.