码迷,mamicode.com
首页 > 其他好文 > 详细

sublime下emmet的安装

时间:2016-05-13 18:57:22      阅读:116      评论:0      收藏:0      [点我收藏+]

标签:

步骤1:下载安装sublime 2(3)
 
步骤2:打开sublime,启动控制台(Ctrl+`)
另:mac下ctrl为cmd

步骤3:选择代码粘贴确认
 
sublime text 2:
import urllib2,os;pf=‘Package Control.sublime-package‘;ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),‘wb‘).write(urllib2.urlopen(‘http://sublime.wbond.net/‘+pf.replace(‘ ‘,‘%20‘)).read())
 
subliem text 3:
import urllib.request,os,hashlib; h = ‘7183a2d3e96f11eeadd761d777e62404‘ + ‘e330c659d4bb41d3bdf022e94cab3cd0‘; 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://sublime.wbond.net/‘ + 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)

步骤4:Ctrl+Shift+P,输入 install 选中Package Control: Install Package ,输入 Emmet
另:Zen Coding 改名为 Emmet.

sublime下emmet的安装

标签:

原文地址:http://www.cnblogs.com/miaoamiao/p/5490271.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!