mirror of
https://github.com/writefreely/writefreely
synced 2024-11-24 17:43:05 +00:00
Merge pull request #270 from nkoehring/js-html-aliases
add js, jsx and html aliases for highlightjs
This commit is contained in:
commit
cd2e725746
1 changed files with 5 additions and 2 deletions
|
@ -20,9 +20,12 @@
|
|||
"hh" : "cpp",
|
||||
"hxx" : "cpp",
|
||||
"cxx" : "cpp",
|
||||
"sh" : "bash"
|
||||
"sh" : "bash",
|
||||
"js" : "javascript",
|
||||
"jsx" : "javascript",
|
||||
"html" : "xml"
|
||||
};
|
||||
|
||||
|
||||
// Given a set of nodes, run highlighting on them
|
||||
function highlight(nodes) {
|
||||
for (i=0; i < nodes.length; i++) {
|
||||
|
|
Loading…
Reference in a new issue