The old Emmet work fined, but now my Sublime has upgraded Emmet
plugin to the latest version automatically, and the following snippets doesn't work anymore...
The latest Emmet can only accept HTML syntax on custom snippets
These snippets my seems odd, since these are my custom tag which will be convert into php code in Template Engine
, so the code aren't HTML syntax.
For instance, when I type p1
and press tab
, I want it give me <!--{if }-->
:
{
"config": {
// Configure snippets/options for HTML syntax only.
// For a list of supported syntaxes, check out keys of `syntax_scopes`
// dictionary of `Emmet.sublime-settings`
"html": {
"snippets": {
"p1": "<!--{if }-->",
"l1": "<!--{/if}-->",
"p2": "<!--{loop }-->",
"l2": "<!--{/loop}-->",
"p3": "<!--{eval }-->",
"p4": "<!--{block }-->",
"l4": "<!--{/block}-->",
"else": "<!--{else}-->",
"elif": "<!--{elseif }-->"
}
}
}
}
question from:
https://stackoverflow.com/questions/66066391/how-to-add-not-html-syntax-snippet-in-sublime-with-emmet 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…