From fcc5896926e217b66122fcc371440d0fddd78912 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sun, 24 Jun 2012 12:38:34 +0100 Subject: [PATCH] LESS condition added --- editor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor.php b/editor.php index a22e185..2ca8efc 100644 --- a/editor.php +++ b/editor.php @@ -6,7 +6,7 @@ CodeMirror 2: ICE Coders Editor of Choice - + @@ -146,7 +146,7 @@ function createNewCMInstance(num) { if(top.ICEcoder.tagString.slice(0,1)=="/"||top.ICEcoder.tagString.slice(0,1)=="?") { canDoEndTag=false; } - if (!top.ICEcoder.codeAssist||fileName.indexOf(".js")>0||fileName.indexOf(".css")>0) { + if (!top.ICEcoder.codeAssist||fileName.indexOf(".js")>0||fileName.indexOf(".css")>0||fileName.indexOf(".less")>0) { canDoEndTag=false; } contentType = top.ICEcoder.caretLocType;