Closed liuderchi closed 6 years ago
a quick note on how to list current supported grammars
editor = atom.workspace.getActiveTextEditor()
grammars = editor.getGrammar()
console.log(
grammars.registry.getGrammars()
.map(({ scopeName }) => scopeName)
.filter(name => name.search('text.html') >= 0)
.sort()
)
/*
[ "text.html.basic",
"text.html.erb",
"text.html.gohtml",
"text.html.jsp",
"text.html.mustache",
"text.html.php",
"text.html.ruby"
]
*/
refine #4