Commits

Anton Vynogradenko  committed b4f49c6

enabled JavaScript highlighting and CodeMirror.matchBrackets addon

  • Participants
  • Parent commits 21b8096

Comments (0)

Files changed (2)

       this.editor = CodeMirror(document.getElementById('editarea'), {
         value: '',
         mode:  "javascript",
+        matchBrackets: true,
         lineNumbers: true
       });
 
 <script src="lib/jquery-2.0.2.min.js"></script>
 <script src="lib/backbone-min.js"></script>
 <script src="codemirror-3.15/lib/codemirror.js"></script>
+<script src="codemirror-3.15/mode/javascript/javascript.js"></script>
 <script src="codemirror-3.15/addon/edit/matchbrackets.js"></script>
 <script src="base.js"></script>
 <script src="objects.js"></script>
     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
   })();
-
 </script>
 </head>
 <body>