Note that there are some explanatory texts on larger screens.

plurals
  1. POSyntaxhighlighter autoloader
    text
    copied!<p>I got the SyntaxHighlighter from <a href="http://alexgorbatchev.com/SyntaxHighlighter/" rel="nofollow">http://alexgorbatchev.com/SyntaxHighlighter/</a></p> <p>I cant get the autoloader to work. What am I doing wrong?</p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;link href="styles/shCore.css" rel="stylesheet" type="text/css" /&gt; &lt;link href="styles/shCoreDefault.css" rel="stylesheet" type="text/css" /&gt; &lt;script src="scripts/shCore.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="scripts/shAutoloader.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; SyntaxHighlighter.autoloader('js scripts/shBrushJScript.js'); SyntaxHighlighter.all(); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;pre class="brush: js"&gt; function foo() { } &lt;/pre&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>I've made sure that my urls/script paths are correct.</p> <p>This works, but I'd really like to get the autoloader working.</p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;link href="styles/shCore.css" rel="stylesheet" type="text/css" /&gt; &lt;link href="styles/shCoreDefault.css" rel="stylesheet" type="text/css" /&gt; &lt;script src="scripts/shCore.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="scripts/shBrushJScript.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; SyntaxHighlighter.all(); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;pre class="brush: js"&gt; function foo() { } &lt;/pre&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload