User:Wispborne/global.js

// register the hook before the import to avoid race conditions mw.hook('dev.highlight').add(function(hljs) {   // hljs is a shortcut to window.dev.highlight    //hljs.loadAllLanguages;    //hljs.loadLanguages(["java", "kotlin"]);     // .then(function { hljs.useTheme("atom-one-dark"); hljs.initHighlightingOnLoad; //     hljs.highlightAuto; //}); }); importArticle({ type: 'script', article: 'u:dev:MediaWiki:Highlight-js.js' });