+1
Like this:
$('pre > code').each(function() {
hljs.highlightBlock(this);
});
:+1: great.
@hojas it works
For people disliking jquery:
document.querySelectorAll('pre > code').forEach(function(el) {
hljs.highlightBlock(el);
});
Most helpful comment
Like this: