title: Implementing CodeMirror Syntax Highlighter
body: <p>I am trying to make use of <a href="http://marijn.haverbeke.nl/codemirror/" rel="nofollow noreferrer"><strong>this</strong></a> Syntax highlighter. I have tried to implement <a href="http://marijn.haverbeke.nl/codemirror/contrib/sql/index.html" rel="nofollow noreferrer"><strong>their example</strong></a> and I always seem to get this error in firebug:</p>
  
  <blockquote>
    <p>place is not a function
        else place(div);</p>
  </blockquote>
  
  <p>Here is my code, I thought it was a path issue, but everything looks right:</p>
  
  <pre><code>&lt;textarea id="code1" rows="20" cols="20"&gt;
  select * from where this = done
  &lt;/textarea&gt;
  
  &lt;script type="text/javascript" src="codemirror/js/codemirror.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  
  var editor = new CodeMirror('code1', {
    height: "150px",
    parserfile: "codemirror/contrib/sql/js/parsesql.js",
    stylesheet: "css/sqlcolors.css",
    textWrapping: true
  });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>If you look at the source code of that example page, its similar to mine yet, the text in the text area doesn't get highlighted and I always get that error.</p>
  
  <p>Thanks all for any help</p>