File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 180180 caretChunk = thisCM.getValue().substr(0,top.ICEcoder.caretPos+1);
181181
182182 if(caretChunk.lastIndexOf("<script")>caretChunk.lastIndexOf("/script>")&&caretLocType=="Unknown") {caretLocType = "JavaScript";}
183- else if (caretChunk.lastIndexOf("<? ")>caretChunk.lastIndexOf( " ?> ")&&caretLocType=="Unknown") {caretLocType = "PHP";}
184- else if (caretChunk.lastIndexOf("<%")>caretChunk.lastIndexOf("%>")&&caretLocType=="Unknown") {caretLocType = "Ruby";}
183+ else if (caretChunk.lastIndexOf("<\ ?")>caretChunk.lastIndexOf("?\ >")&&caretLocType=="Unknown") {caretLocType = "PHP";}
184+ else if (caretChunk.lastIndexOf("<\ %")>caretChunk.lastIndexOf("%\ >")&&caretLocType=="Unknown") {caretLocType = "Ruby";}
185185 else if (caretChunk.lastIndexOf("<style")>caretChunk.lastIndexOf("/style>")&&caretLocType=="Unknown") {caretLocType = "CSS";}
186186 else if (caretChunk.lastIndexOf("<")>caretChunk.lastIndexOf(">")&&caretLocType=="Unknown") {caretLocType = "HTML";}
187187 else if (caretLocType=="Unknown") {caretLocType = "Content";};
You can’t perform that action at this time.
0 commit comments