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
|
@ -22,6 +22,10 @@ $( document ).ready(function() {
|
||||||
$('code').each(function(i, block) {
|
$('code').each(function(i, block) {
|
||||||
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,
|
||||||
|
|
Loading…
Reference in New Issue