add hljs to autocomplete help examples

This commit is contained in:
LenAnderson
2024-04-25 15:45:17 -04:00
parent 3ff367a221
commit a4483a4419

View File

@ -338,6 +338,10 @@ export class SlashCommand {
const help = document.createElement('span'); {
help.classList.add('help');
help.innerHTML = helpString;
for (const code of help.querySelectorAll('pre > code')) {
code.classList.add('language-stscript');
hljs.highlightElement(code);
}
frag.append(help);
}
if (aliasList.length > 0) {