Emmet最全提示说明

Emmet最全提示说明

前一篇文章简单了说明了Emmet的使用:Emmet相关使用

今天我就将关于subline中Emmet插件的snippets.json文件进行具体说明,

在snippets.json文档中,我们能够看到Emmet能够支持多种文档格式的语法提示

如:variables,css,html,xml,xsl,haml,scss,sass等,仅仅要装了Emmet插件,我们就能够利用Emmet的简洁高效的写法来编写自己的html文档.

以下就当中的html来进行说明

1.输入 !!!  ,会被扩展为

 <!doctype html>

2.输入!!!4t,
会被扩展为

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  

3.输入!!!4s
,
会被扩展为

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

4.输入!!!xt
,
会被扩展为

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

5.输入!!!xs
,
会被扩展为

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

6..输入!!!xxs,会被扩展为

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

7.输入c
,
会被扩展为

<!--  -->

8.
输入
cc:ie6
,
会被扩展为

<!--[if lte IE 6]>
        
<![endif]-->

9.
输入
cc:ie
,
会被扩展为

<!--[if IE]>
        
<![endif]-->

10.
输入
cc:noie
,
会被扩展为

<!--[if !IE]><!-->
        
<!--<![endif]-->

11.
输入
!或者html:5
,
会被扩展为

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>

</body>
</html>

12.
输入
a
,
会被扩展为

<a href=""></a>

13.
输入
a:link
,
会被扩展为

<a href="http://"></a>

14.
输入
a:mail
,
会被扩展为

<a href="mailto:"></a>

15.
输入
abbr
,
会被扩展为

<abbr title=""></abbr>

16.
输入
acronym(h5废弃)
,
会被扩展为

<acronym title=""></acronym>

17.
输入
base
,
会被扩展为

<base href=""/>

18.
输入
col
,
会被扩展为

<col/>

19.
输入
link:css
,
会被扩展为

<link rel="stylesheet" href="style.css"/>

20.
输入
link:print
,
会被扩展为

<link rel="stylesheet" href="print.css" media="print"/>

21.输入link:favicon,会被扩展为

<link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/>

22.输入link:touch,会被扩展为<

<link rel="apple-touch-icon" href="favicon.png"/>

23.输入style,会被扩展为

<style></style>

24.输入script:src,会被扩展为

<script src=""></script>

25.输入img,会被扩展为

<img src="" alt=""/>

26.输入embed,会被扩展为

<embed src="" type=""/>

27.输入object,会被扩展为

<object data="" type=""></object>

28.输入param,会被扩展为

<param name="" value=""/>

29.输入area,会被扩展为

<area shape="" coords="" href="" alt=""/>

30.输入area:d,会被扩展为

<area shape="default" href="" alt=""/>

31.输入area:c,会被扩展为

<area shape="circle" coords="" href="" alt=""/>

32.输入area:r,会被扩展为

<area shape="rect" coords="" href="" alt=""/>

33.输入form:get,会被扩展为

<form action="" method="get"></form>

34.输入form:post,会被扩展为

<form action="" method="post"></form>

35.输入input:hidden,会被扩展为

<input name="" type="hidden"/>

36.输入select:disabled,会被扩展为

<select name="" id="" disabled=""></select>

37.输入menu:context,会被扩展为

<menu type="context"></menu>

38.输入html:xml,会被扩展为

<html xmlns="http://www.w3.org/1999/xhtml"></html>

然后,还有非常多简写的html元素缩写,我就不一一列举了,以下:

“bq”: “blockquote”,
“acr”: “acronym”,
“fig”: “figure”,
“figc”: “figcaption”,
“ifr”: “iframe”,
“emb”: “embed”,
“obj”: “object”,
“src”: “source”,
“cap”: “caption”,
“colg”: “colgroup”,
“fst”: “fieldset”,
“fst:d”: “fieldset[disabled]”,
“btn”: “button”,
“btn:b”: “button[type=button]”,
“btn:r”: “button[type=reset]”,
“btn:s”: “button[type=submit]”,
“btn:d”: “button[disabled]”,
“optg”: “optgroup”,
“opt”: “option”,
“tarea”: “textarea”,
“leg”: “legend”,
“sect”: “section”,
“art”: “article”,
“hdr”: “header”,
“ftr”: “footer”,
“adr”: “address”,
“dlg”: “dialog”,
“str”: “strong”,
“prog”: “progress”,
“fset”: “fieldset”,
“fset:d”: “fieldset[disabled]”,
“datag”: “datagrid”,
“datal”: “datalist”,
“kg”: “keygen”,
“out”: “output”,
“det”: “details”,
“cmd”: “command”,
“doc”: “html>(head>meta[charset=UTF-8]+title{${1:Document}})+body”,
“doc4”: “html>(head>meta[http-equiv=\”Content-Type\” content=\”text/html;charset=${charset}\”]+title{${1:Document}})+body”,

“html:4t”:  “!!!4t+doc4[lang=${lang}]”,
“html:4s”:  “!!!4s+doc4[lang=${lang}]”,
“html:xt”:  “!!!xt+doc4[xmlns=http://www.w3.org/1999/xhtml xml:lang=${lang}]”,
“html:xs”:  “!!!xs+doc4[xmlns=http://www.w3.org/1999/xhtml xml:lang=${lang}]”,
“html:xxs”: “!!!xxs+doc4[xmlns=http://www.w3.org/1999/xhtml xml:lang=${lang}]”,
“html:5”:   “!!!+doc[lang=${lang}]”,


“ol+”: “ol>li”,
“ul+”: “ul>li”,
“dl+”: “dl>dt+dd”,
“map+”: “map>area”,
“table+”: “table>tr>td”,
“colgroup+”: “colgroup>col”,
“colg+”: “colgroup>col”,
“tr+”: “tr>td”,
“select+”: “select>option”,
“optgroup+”: “optgroup>option”,
“optg+”: “optgroup>option”

假设对snippets.json具体内容感兴趣,或者想自己自己定义扩展Ememt使用方法,能够下载该文件并去Ememt官方站点上了解.


版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/119006.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 数学建模算法学习——各类模型算法汇总[通俗易懂]

    数学建模算法学习——各类模型算法汇总[通俗易懂]相关模型解决的问题数据分析类算法一览100个经典动态规划方程优化问题线性规划简介:线性规划的目标函数可以是求最大值,也可以是求最小值,约束条件的不等号可以是小于号也可以是大于号。为了避免这种形式多样性带来的不便,Matlab中规定线性规划的标准形式为其中c和x为n维列向量,A、Aeq为适当维数的矩阵,b、beq为适当维数的列向量。代码实现…

    2022年6月23日
    29
  • 全面解决Generic host process for win32 services遇到问题需要关闭

    全面解决Generic host process for win32 services遇到问题需要关闭解决WIN补丁系统开机后弹出Generichostprocessforwin32services遇到问题需要关闭!出现上面这个错误一般有三种情况。1.就是补丁。开机后会提示GenericHostProcessforWin32Services遇到问题需要关闭”“RemoteRrocedureCall(RPC)服务意外终止,然后就自动重起电脑。一般该病毒会在补丁HKEY_

    2022年10月12日
    2
  • 数据库连接池技术 之 Druid[通俗易懂]

    数据库连接池技术 之 Druid[通俗易懂]数据库连接池技术之Druiddruid不仅仅为数据源,还能sql拦截等功能。下面示例中用到的Dept类,请参考:Dept源代码JDBC版本第一步:创建一个MavenWeb项目,添加依赖<dependency><groupId>mysql</groupId><artifactId>mysql-connector-……

    2022年7月23日
    12
  • Spring Boot实战第七章-SpringBoot Web开发-Thymeleaf模板引擎

    Spring Boot实战第七章-SpringBoot Web开发-Thymeleaf模板引擎

    2021年5月16日
    128
  • java开发面试基础题_面试题 java

    java开发面试基础题_面试题 java一、对象的实例化1.创建对象的方式new:最常见的方式(本质是构造器)变形1:Xxx的静态方法变形2:XxBuilder/XxoxFactory的静态方法Class的newInstance():反射的方式,只能调用空参的构造器,权限必须是publicConstructor的newInstance(Xxx):反射的方式,位于java.lang.reflect.Constructor可以调用空参、带参的构造器,权限没有要求使用clone():不调用任何构造器,当前类需

    2022年10月11日
    2
  • spss相关系数及其检验_等级相关系数法检验

    spss相关系数及其检验_等级相关系数法检验这里写目录标题SPSS的异方差检验(等级相关系数检验法)数据来源普通最小二乘法求回归方程功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML图表FLowchart流程图导…

    2025年8月2日
    4

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号