I am trying to add some custom javascript snippets and abbreviations to the snippets.json file of Emmet, but I can't get it to work! (I am using Sublime Text 2.)
If I put this into the end of the settings.json
"javascript": {
"abbreviations": {
"while": "while(true)\n{\n\t\n}"
},
"snippets": {
"asdf": "qwerty"
}
}
nothing happens. (I set the syntax of the file to javascript obviously)
But if I replace 'javascript' with 'css':
"css": {
"abbreviations": {
"while": "while(true)\n{\n\t\n}"
},
"snippets": {
"asdf": "qwerty"
}
}
it correctly overwrites the built in CSS snippets, and works fine. (I obviously set the syntax to css [otherwise it does NOT work])
What am I missing? according to this: http://docs.emmet.io/customization/snippets/ I should be able to define snippets for custom languages this way.
Note: I have tried 'js' for the language name too.