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