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 }-->"
}
}
}
}