Merge pull request #182 from integer32llc/hljs-class
Add hljs class to all code blocks, regardless of highlighting
This commit is contained in:
commit
c986b3afc4
|
@ -23,6 +23,10 @@ $( document ).ready(function() {
|
||||||
hljs.highlightBlock(block);
|
hljs.highlightBlock(block);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Adding the hljs class gives code blocks the color css
|
||||||
|
// even if highlighting doesn't apply
|
||||||
|
$('code').addClass('hljs');
|
||||||
|
|
||||||
var KEY_CODES = {
|
var KEY_CODES = {
|
||||||
PREVIOUS_KEY: 37,
|
PREVIOUS_KEY: 37,
|
||||||
NEXT_KEY: 39
|
NEXT_KEY: 39
|
||||||
|
|
Loading…
Reference in New Issue