Merge pull request #182 from integer32llc/hljs-class

Add hljs class to all code blocks, regardless of highlighting
This commit is contained in:
Mathieu David 2016-11-14 07:48:07 +01:00 committed by GitHub
commit c986b3afc4
1 changed files with 4 additions and 0 deletions

View File

@ -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,