Commit 3bd79874d206646ad5010bc6a39a7c0e1a9c0459

Authored by ykxie
1 parent 51d480bf

自动补全

Showing 1 changed file with 21 additions and 5 deletions
src/js/emmet.js
@@ -12069,7 +12069,8 @@ emmet.exec(function(require, _) { @@ -12069,7 +12069,8 @@ emmet.exec(function(require, _) {
12069 * Filter for escaping unsafe XML characters: <, >, & 12069 * Filter for escaping unsafe XML characters: <, >, &
12070 * @author Sergey Chikuyonok (serge.che@gmail.com) 12070 * @author Sergey Chikuyonok (serge.che@gmail.com)
12071 * @link http://chikuyonok.ru 12071 * @link http://chikuyonok.ru
12072 - */ emmet.exec(function(require, _) { 12072 + */
  12073 +emmet.exec(function(require, _) {
12073 var charMap = { 12074 var charMap = {
12074 '<': '&lt;', 12075 '<': '&lt;',
12075 '>': '&gt;', 12076 '>': '&gt;',
@@ -12555,7 +12556,8 @@ emmet.exec(function(require, _) { @@ -12555,7 +12556,8 @@ emmet.exec(function(require, _) {
12555 12556
12556 return tree; 12557 return tree;
12557 }); 12558 });
12558 -}); /** 12559 +});
  12560 +/**
12559 * Trim filter: removes characters at the beginning of the text 12561 * Trim filter: removes characters at the beginning of the text
12560 * content that indicates lists: numbers, #, *, -, etc. 12562 * content that indicates lists: numbers, #, *, -, etc.
12561 * 12563 *
@@ -12591,7 +12593,8 @@ emmet.exec(function(require, _) { @@ -12591,7 +12593,8 @@ emmet.exec(function(require, _) {
12591 var re = new RegExp(require('preferences').get('filter.trimRegexp')); 12593 var re = new RegExp(require('preferences').get('filter.trimRegexp'));
12592 return process(tree, re); 12594 return process(tree, re);
12593 }); 12595 });
12594 -}); /** 12596 +});
  12597 +/**
12595 * Filter for trimming "select" attributes from some tags that contains 12598 * Filter for trimming "select" attributes from some tags that contains
12596 * child elements 12599 * child elements
12597 * @author Sergey Chikuyonok (serge.che@gmail.com) 12600 * @author Sergey Chikuyonok (serge.che@gmail.com)
@@ -12601,7 +12604,8 @@ emmet.exec(function(require, _) { @@ -12601,7 +12604,8 @@ emmet.exec(function(require, _) {
12601 * @memberOf __xslFilterDefine 12604 * @memberOf __xslFilterDefine
12602 * @param {Function} require 12605 * @param {Function} require
12603 * @param {Underscore} _ 12606 * @param {Underscore} _
12604 - */ emmet.exec(function(require, _) { 12607 + */
  12608 +emmet.exec(function(require, _) {
12605 var tags = { 12609 var tags = {
12606 'xsl:variable': 1, 12610 'xsl:variable': 1,
12607 'xsl:with-param': 1 12611 'xsl:with-param': 1
@@ -13555,7 +13559,19 @@ emmet.exec(function(require, _) { @@ -13555,7 +13559,19 @@ emmet.exec(function(require, _) {
13555 "tr+": "tr>td", 13559 "tr+": "tr>td",
13556 "select+": "select>option", 13560 "select+": "select>option",
13557 "optgroup+": "optgroup>option", 13561 "optgroup+": "optgroup>option",
13558 - "optg+": "optgroup>option" 13562 + "optg+": "optgroup>option",
  13563 +
  13564 + <!-- ================== 增加的缩写 ==================== -->
  13565 + "myimg":"<img src=\"http://www.igeekbar.com/igeekbar/laitu/300x200&text=hello world/222222/ffffff\" alt=\"占位图片\">",
  13566 + "myjq":"<script src=\"https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js\"></script>",
  13567 + "myjq":"<script src=\"https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js\"></script>",
  13568 + "myboot1":"<link href=\"https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css\" rel=\"stylesheet\">",
  13569 + "myboot2":"<script src=\"https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js\"></script>",
  13570 + "myboot":"myboot1+myboot2",
  13571 + "myjs1":"<input type=\"button\" onclick=\"myDebug()\" value=\"进入调试\">",
  13572 + "myjs2":"script{${1:function myDebug() {console.log(\"请点击后面的网址,进入调试界面:\");}}}",
  13573 + "myjs": "!!!+html[lang=${lang}]>(head>meta[charset=UTF-8]+title{${1:Document}})+body>(myjs1+myjs2)",
  13574 + <!-- ================== 增加的缩写 ==================== -->
13559 } 13575 }
13560 }, 13576 },
13561 13577