We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a30c88 commit 37923f0Copy full SHA for 37923f0
scripts/pager.js
@@ -1143,10 +1143,10 @@ console.log(fileName);
1143
div.innerHTML = '<code class="language-none">Content</code>';
1144
content.append(div);
1145
let code = div.querySelector('code');
1146
- code.innerHTML = Prism.highlight(li.item, Prism.languages['sql'], 'sql');
+ code.innerHTML = Prism.highlight(li.item, Prism.languages[currentTab.data.language], currentTab.data.language);
1147
jx.addLineNumbers(code);
1148
code.resetLineNumbers();
1149
- code.classList.add('language-sql');
+ code.classList.add(`language-${currentTab.data.language}`);
1150
});
1151
content.children[0].style['display'] = 'none';
1152
elements.iframe.print();
0 commit comments