本文摘自PHP中文网,作者藏色散人,侵删。
下面由sublime入门教程栏目给大家介绍用sublime text生成html网页头部代码的快捷方式的方法,希望对需要的朋友有所帮助!
输入html:xt然后按tab键即可生成如下:
1 2 3 4 5 6 7 8 9 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns= "http://www.w3.org/1999/xhtml" xml:lang= "en" >
<head>
<meta http-equiv= "Content-Type" content= "text/html;charset=UTF-8" >
<title>Document</title>
</head>
<body>
</body>
</html>
|
上面是最常用的头文件,如果用html5的话,则输入html:5然后tab键,即可生成如下:
1 2 3 4 5 6 7 8 9 | <!doctype html>
<html>
<head>
<meta charset= "UTF-8" >
<title>Document</title>
</head>
<body>
</body>
</html>
|
当然还有其他格式如html:xs html:xxs html:4s html:4t等等,并不常用。
以上就是用sublime text生成html网页头部代码的快捷方式的详细内容,更多文章请关注木庄网络博客!
相关阅读 >>
sublime text3如何安装搭建 git 环境
sublime text3 支持vue语法高亮显示
sublime anaconda载入出现错误的解决办法
sublime text3 中文乱码问题
如何让sublime text2 对coffeescript提供支持
mac系统sublime text3安装与使用中遇到的问题
图文详解sublime text3的插件管理package control的安装
sublime常用插件和快捷键
sublime配置jade语法高亮
解决sublime text3中无法运行python中input()的问题
更多相关阅读请进入《sublime》频道 >>
转载请注明出处:木庄网络博客 » 用sublime text生成html网页头部代码的快捷方式