mylloon.fr/static/js/libs/hljs.js
Mylloon f68c75ab62
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending
Add aliases
2023-04-24 16:47:38 +02:00

17 lines
362 B
JavaScript

window.addEventListener("load", () => {
hljs.configure({
noHighlightRe: /^$/i,
languageDetectRe: /\blanguage-hljs-([\w-]+)\b/i,
});
hljs.addPlugin(new CopyButtonPlugin());
const aliases = {
bash: ["fish"],
};
for (const lang in aliases) {
hljs.registerAliases(aliases[lang], { languageName: lang });
}
hljs.highlightAll();
});