Because I do iOS in it, recently have the idea of learning H5, so began ...
First use sublime editing software, but each time you create a new file, you need to re-write the header file that set of things, feel very inconvenient, so began to install Emmet plug-ins. Specific as follows:
One, install the plug-in Manager package control
1. Open the sublime console
Open Sublime, press CONTROL + ' (MAC) or CTRL + ' (Windows)
You can also select View > Show Console from the menu,
2, according to sublime version of different paste the following code
Sublime 2
import urllib2,os,hashlib; h = ‘2915d1851351e5ee549c20394736b442‘ + ‘8bc59f460fa1548d1514676163dafc88‘; 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 restart Sublime Text to finish installation‘)
---------Split Line Kids--------
Sublime 3
import urllib.request,os,hashlib; h = ‘2915d1851351e5ee549c20394736b442‘ + ‘8bc59f460fa1548d1514676163dafc88‘; 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.path.join( ipp, pf), ‘wb‘ ).write(by)
3. Restart Sublime as prompted
Ii. installing Emmet using the package Control
1. Open command Palette
Press the shortcut key CTRL + SHIFT + P in sublime text 3
or choose Tools > Command Palette in the menu ...
1.1 If you encounter the following error
Package Control Error executing:
Solution Open Keychain, delete the error message Cert 0:
to the left of the corresponding certificate; Pro Test available
Problem solving reference from: http://stackoverflow.com/questions/33224830/error-executing-security-dump-trust-settings-in-sublime-text-3
1.2 If an error is encountered: Missing dependency was just installed. Sublime Text should be restarted,otherwise ....
Workaround: Restart Sublime
2. In the pop-up input box, select the package Control:install package in the automatic prompt.
A lot of content, you can enter Instaill and other key words query
3. Enter Emmet and click, Emmet will start to install the
4. Restart Sublime Text 3 again.
Third, Emmet use guide
* Tips: After you create a document, you must save it as HTML, etc.
Recommended reference article: http://blog.csdn.NET/ys743276112/article/details/38133995
Overview:
1. Enter "!" or "Html:5", then press TAB:, the head and body appear in all formats;
- Html:5 or!: for HTML5 document types
- HTML:XT: For XHTML transition Document types
- Html:4s: For HTML4 Strict document types
2. easily add classes, IDs, text, and attributes
Continuous INPUT element names and Id,emmet will be automatically complete for you, such as input p#foo:
...
Reference article:
http://www.jianshu.com/p/3e51778a2027
Http://stackoverflow.com/questions/33224830/error-executing-security-dump-trust-settings-in-sublime-text-3
http://blog.csdn.net/lovechris00/article/details/51678930
/*********************** at this point, if the hardware does not have any other problems, basically can be used normally ******************************/
However, when I go to use, I cannot use the hint: loading pyv8 binary, please wait .....
The original need to install the PYV8 plug-in
- Download Emmet required PyV8 plugin (: https://github.com/emmetio/pyv8-binaries);
- Open the menu
Sublime Text
bar Preferences
– Browser Packages
;
Installed Packages
Create a new directory under the directory pyV8
, the download to the pyv8-osx
(OS X10.7 above is pyv8-osx-p3) folder copy here;
- Restart ST3.
Reference article: http://uedethan.com/resolve-mac-sublime-text3-because-pyv8-unable-to-load-cause-emmet-unavailable-problems/
This time it can be used normally.
Sublime Installing the Emmet plugin under Mac system