add js, jsx and html aliases for highlightjs

This commit is contained in:
koehr 2020-02-26 22:12:06 +01:00
parent e16ea3b419
commit b42760abab

View file

@ -20,9 +20,12 @@
"hh" : "cpp", "hh" : "cpp",
"hxx" : "cpp", "hxx" : "cpp",
"cxx" : "cpp", "cxx" : "cpp",
"sh" : "bash" "sh" : "bash",
"js" : "javascript",
"jsx" : "javascript",
"html" : "xml"
}; };
// Given a set of nodes, run highlighting on them // Given a set of nodes, run highlighting on them
function highlight(nodes) { function highlight(nodes) {
for (i=0; i < nodes.length; i++) { for (i=0; i < nodes.length; i++) {