fixed codemirror syntax highlighting, thanks Mariano

This commit is contained in:
mdipierro
2013-01-27 09:59:19 -06:00
parent ec7c8f0248
commit 8fe3934c6e
3 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -43,8 +43,9 @@ function doHighlight(highlight) {
if (window.ace_editor) {
window.ace_editor.gotoLine(highlight.lineno);
} else if (window.mirror) {
window.mirror.setSelection({line:highlight.lineno,ch:0},
{line:highlight.end,ch:0});
// Put the cursor at the offending line:
window.mirror.setCursor({line:highlight.lineno-1,
ch:highlight.offset+1});
} else if (window.eamy) {
// not implemented
} else if (window.textarea) {