Sublimetext3安装Emmet插件步骤(网上借鉴)
1.首先尽量到官网上下载Sublime text3
下载地址:http://www.sublimetext.com/3
2.打开Sublime text3,点击View找到Show Console(这两步可以用快捷键ctrl+~代替
将以下内容粘贴到底下白框里边,然后按enter键
import urllib.request,os,hashlib; h = ‘6f4c264a24d933ce70df5dedcf1dcaee’ + ‘ebe013ee18cced0ef93d5f746d80ef60’; 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)
再点击Preferences中的Package Control,找到Package Control Install Package,点击进入,出现一个界面、
在输入框中输入emmet,选择第一个,则会自动安装
测试:
ul#test>li*4
按Ctrl+e 生成—
能生成就OK