sublime text 3 的emmet 添加自定义 html 片段

比如想在html写 jquery 直接添加jquery地址,打开 ‘首选项->Package Setting->Emmet->Settings - User’,

css也可以如法炮制,代码如下

{
    "syntaxProfiles": {
        // Enable XHTML dialect for HTML syntax
        "html": "xhtml"
    },
    "snippets": {
        "html": {
            "abbreviations": {
                "jquery": "<script src='http://localhost/static/js/jquery.js'></script>"
            }
        },
        "css": {
            "filters": "html",
            "snippets": {
                "csdn":"taodesign.cnblogs.com"
            }
        }
    }
}

 

posted @ 2015-01-15 17:21  taodesign  阅读(1537)  评论(0编辑  收藏  举报