sublimetext3 - filter.commentAfter by Emmet in Sublime Text 3 not work -


in emmet st3, tried customize little comment after giving tab when creating label, example #div or .span

i read solution in settings of emmet (emmet.sublime-settings):

"preferences": {      "filter.commentafter"  : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->",      "filter.commentbefore" : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->" } 

but not work. please help

in user/emmet.sublime-settings file make sure have structure this

{     "preferences": {         "filter.commentafter"  : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->",         "filter.commentbefore" : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->"                   } } 

and should work.
make sure dont forget |c @ end

div#test.myclass|c 

as if want automatically add c filter should set syntaxprofiles this

{     "preferences": {     },     "syntaxprofiles": {         "html" : {             // auto add comments             "filters": "html,c"         }     } } 

make sure it's on same level preferences


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -