in reply to PerlMonks meets Twitter Bootstrap
$('pre.blockcode code').each(function(i, block) { hljs.highlightBlock(block); });
Perlmoks produces these tags
<pre class="code"> <div class="codeblock"> <tt class="codetext">
So I would select on tt.codetext (i've tested seems to work)
javascript:(function () { $('tt.codetext').each(function(i, block) { hljs.highlightBlock(block); + }); }());
There is also tt.inlinecode for no-newlines ... see Help for Display Settings
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PerlMonks meets Twitter Bootstrap
by tobyink (Canon) on Sep 04, 2014 at 08:54 UTC | |
by Anonymous Monk on Sep 04, 2014 at 10:36 UTC |