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

Front-End(五)——工具使用

时间:2016-07-04 11:52:21      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:

 

mac端推荐使用sublime+emmet.

环境搭建

sublime

官网下载sublime text 02或者03,03现在(2016.07)还是测试版,我使用的是text02.

emmet

sublime text需要一款强大的插件——emmet。
1 安装package control,使用control+`打开控制台,输入如下:
text02版本:
import urllib2,os; 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( ))); open( os.path.join( ipp, pf), ‘wb‘ ).write( urllib2.urlopen( ‘http://sublime.wbond.net/‘ +pf.replace( ‘ ‘,‘%20‘ )).read()); print( ‘Please restart Sublime Text to finish installation‘)
text03版本:
import urllib.request,os; pf = ‘Package Control.sublime-package‘; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf),‘wb‘).write(urllib.request.urlopen( ‘http://sublime.wbond.net/‘ + pf.replace(‘ ‘,‘%20‘)).read())

2 tools->command platte,输入:install package。再输入emmet安装重启即可。

 

emmet的使用

关于emmet的使用介绍,emmet使用类似于css的语法,快速生成html
http://www.iteye.com/news/27580

html:5 或!:用于HTML5文档类型
html:xt:用于XHTML过渡文档类型
html:4s:用于HTML4严格文档类型

连续输入元素名称和ID,Emmet会自动为你补全,比如输入p#foo

Front-End(五)——工具使用

标签:

原文地址:http://www.cnblogs.com/ceo1207/p/5639854.html

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