Hello everyone, in my web page I am displaying code blocks with highlight js, I am putting my code that is of more than one line with <pre><code></code></pre> and the highlighting works fine. But what I want to do in addition to that is also highlight inline code which is code blocks of one line that are within the text, it is basically a span tag with inlinecode class as the class name. Here is what I did when initializing hljs:
hljs.initHighlightingOnLoad();
$('span.inlinecode').each(function(i,e){hljs.highlightBlock(e);});
but the highlighting is not working on span.inlinecode nodes.
Any ideas why? Thanks for the help.