try #13 (fix syntax error)
This commit is contained in:
parent
6076fc884e
commit
cdd78ce1a9
@ -47,10 +47,11 @@ window.load_highlighting = function(language){
|
|||||||
var language = window.to_be_highlighted.shift()
|
var language = window.to_be_highlighted.shift()
|
||||||
var elements = document.getElementsByClassName("language-" + language);
|
var elements = document.getElementsByClassName("language-" + language);
|
||||||
for(var i = 0; i < elements.length; ++i)
|
for(var i = 0; i < elements.length; ++i)
|
||||||
try
|
try{
|
||||||
hljs.highlightElement(element);
|
hljs.highlightElement(element);
|
||||||
catch(err)
|
}catch(err){
|
||||||
console.log(err.message);
|
console.log(err.message);
|
||||||
|
}
|
||||||
|
|
||||||
window.is_highlighted_languages.push(language);
|
window.is_highlighted_languages.push(language);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user