From 160c19397a6b0f329086a07c5c22a66f2bae0c8f Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Fri, 2 Mar 2012 15:11:05 +0000 Subject: [PATCH] Matching text function avail plus improvements & fixes to CM display 2 x JS scripts loaded from Code Mirrors lib plus the call to allow selected text matching Different styling for visible & hidden classes These classes mean not only faster tab switching but also fixes render problems on some computers --- editor.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/editor.php b/editor.php index e28a888..5d03d58 100644 --- a/editor.php +++ b/editor.php @@ -11,12 +11,14 @@ + + @@ -40,6 +42,7 @@ function createNewCMInstance(num) {window['cM'+num] = CodeMirror(document.body, if(!window['cM'+top.ICEcoder.cMInstances[top.ICEcoder.selectedTab-1]].somethingSelected()) { top.ICEcoder['cMActiveLine'+top.ICEcoder.selectedTab] = window['cM'+top.ICEcoder.cMInstances[top.ICEcoder.selectedTab-1]].setLineClass(window['cM'+top.ICEcoder.cMInstances[top.ICEcoder.selectedTab-1]].getCursor().line, "cm-s-activeLine"); } + window['cM'+top.ICEcoder.cMInstances[top.ICEcoder.selectedTab-1]].matchHighlight("CodeMirror-matchhighlight"); }, onChange: function() { // If we're not loading the file, it's a change, so update tab