Merge pull request #270 from nkoehring/js-html-aliases

add js, jsx and html aliases for highlightjs
This commit is contained in:
Matt Baer 2020-03-01 13:06:02 -05:00 committed by GitHub
commit cd2e725746
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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++) {