Fandom Developers Wiki
Advertisement

HighlightCode replaces Fandom's/MediaWiki's syntax highlight (while viewing) with highlight.js'. Note that this doesn't run on MediaWiki:ImportJS, but ImportJS-Plus can be used instead.

Installation

Example

//JS from https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics#a_user_name_of_null
function setUserName() {
  let myName = prompt('Please enter your name.');
  if(!myName) {
    setUserName();
  } else {
    localStorage.setItem('name', myName);
    myHeading.textContent = 'Mozilla is cool, ' + myName;
  }
}
Text above can be found here (edit)
Advertisement