File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 160160 if(caretChunk.lastIndexOf("<script")>caretChunk.lastIndexOf("/script>")&&caretLocType=="Unknown") {caretLocType = "JavaScript";}
161161 else if (caretChunk.lastIndexOf("<? ")>caretChunk.lastIndexOf( " ?> ")&&caretLocType=="Unknown") {caretLocType = "PHP";}
162162 else if (caretChunk.lastIndexOf("<%")>caretChunk.lastIndexOf("%>")&&caretLocType=="Unknown") {caretLocType = "Ruby";}
163+ else if (caretChunk.lastIndexOf("<style")>caretChunk.lastIndexOf("/style>")&&caretLocType=="Unknown") {caretLocType = "CSS";}
163164 else if (caretChunk.lastIndexOf("<")>caretChunk.lastIndexOf(">")&&caretLocType=="Unknown") {caretLocType = "HTML";}
164165 else if (caretLocType=="Unknown") {caretLocType = "Content";};
165166
166167 fileName = top.ICEcoder.openFiles[top.ICEcoder.selectedTab-1];
167- if (fileName) {
168+ if (caretLocType == "Content" && fileName) {
168169 fileExt = fileName.split(".");
169170 fileExt = fileExt[fileExt.length-1];
170171 caretLocType =
You can’t perform that action at this time.
0 commit comments