Skip to content

Commit 37923f0

Browse files
committed
Fixed printing language
1 parent 8a30c88 commit 37923f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/pager.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1143,10 +1143,10 @@ console.log(fileName);
11431143
div.innerHTML = '<code class="language-none">Content</code>';
11441144
content.append(div);
11451145
let code = div.querySelector('code');
1146-
code.innerHTML = Prism.highlight(li.item, Prism.languages['sql'], 'sql');
1146+
code.innerHTML = Prism.highlight(li.item, Prism.languages[currentTab.data.language], currentTab.data.language);
11471147
jx.addLineNumbers(code);
11481148
code.resetLineNumbers();
1149-
code.classList.add('language-sql');
1149+
code.classList.add(`language-${currentTab.data.language}`);
11501150
});
11511151
content.children[0].style['display'] = 'none';
11521152
elements.iframe.print();

0 commit comments

Comments
 (0)