P.Brian.Mackey
P.Brian.Mackey

Reputation: 44295

SyntaxHighlighter is null

I am using SyntaxHighlighter. I followed the installation steps and I'm receiving a few errors in the firebug console:

TypeError: SyntaxHighlighter is null

ReferenceError: XRegExp is not defined

I imported the necessary files.

Markup

enter image description here

Why I am getting these errors?

Upvotes: 0

Views: 141

Answers (1)

mafafu
mafafu

Reputation: 1266

It sounds like you need to put your XRegExp.js reference before the shCore.js reference. Order does matter when there's a dependency. One of the most common examples being that you have to load jQuery before you can use jQueryUI.

Upvotes: 1

Related Questions