On load also set the gutter marks

Using tagRangeFinder for now, need to also handle braceRangeFinder and
put into a function within ICEcoder
This commit is contained in:
Matt Pass
2013-05-25 18:26:24 +01:00
parent e4bae8cdc5
commit 6a3e15aabf

View File

@@ -365,6 +365,9 @@ if (action=="load") {
top.ICEcoder['cMActiveLine'+top.ICEcoder.selectedTab] = top.ICEcoder.content.contentWindow['cM'+top.ICEcoder.cMInstances[top.ICEcoder.selectedTab-1]].addLineClass(0, "background", "cm-s-activeLine");
top.ICEcoder.nextcMInstance++;
top.ICEcoder.openFileMDTs.push('<?php echo $serverType=="Linux" ? filemtime($file) : "1000000"; ?>');
for (var i=0; i<cM.lineCount(); i++) {
top.ICEcoder.content.contentWindow.CodeMirror.newFoldFunction(top.ICEcoder.content.contentWindow.CodeMirror.tagRangeFinder,null,"+","-",true)(cM, i);
}
top.ICEcoder.loadingFile = false;
<?php
;};