Board Thread:Support Requests - Getting Technical/@comment-25364614-20190725130209/@comment-25364614-20190730105150

@Fandyllic: :o

---

Anyways, as this thread has gotten some attention here I might as well ask some last minute questions regarding the implementation of the code to the local wiki.

The code for the syntax highlighting is divided into two parts:
 * 1) the module - which defines all the complicated regex functions to read and parse the text in the editor area - saved as MediaWiki:CustomSyntaxHighlighter/module.js
 * 2) the jquery - in which you can set the individual colours that the module references and re/initialize the highlighting - saved as MediaWiki:CustomSyntaxHighlighter/query.js

When both of the parts are directly pasted into my personal wikia.js space or the site-wide common.js space, the syntax highlighting works as intended.

However, if even one of the parts is instead imported using importArticles or even importJS, none of it works. This has also been tested with both the module and the jquery housed in one script; also doesn't work.

I'm assuming this has something to do with the load order for js scripts.

As it is more ideal for the sake of neatness that the js scripts are imported into the wikia/common.js space, is there any way around this? Or do I just bite the bullet, call it a day and keep it directly pasted?