We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
You can use the highlightElement to allow better control what and when to highlight elements, For example, hereβs the equivalent of highlightAll:
highlightElement
highlightAll
document .querySelectorAll('[class*="shj-lang-"]') .forEach(elm => highlightElement(elm));
The highlightElement can also take the language and the layout mode of element to highlight:
language
layout mode
highlightElement(elm, '[language]', '[multi|in|one]line', { hideLineNumbers: true })
and also an option object who contains
hideLineNumbers
false
shj-mode-header