Replacing codemirror ver 0.93 by ver 3.13 and using it in PM.

This commit is contained in:
ralph
2013-04-02 09:39:03 -04:00
parent 44b4cd860c
commit c869edb305
23 changed files with 704 additions and 479 deletions

View File

@@ -57,6 +57,7 @@
function dispatch(stream, state) {
var isPHP = state.curMode == phpMode;
if (stream.sol() && state.pending != '"') state.pending = null;
if (!isPHP) {
if (stream.match(/^<\?\w*/)) {
state.curMode = phpMode;
@@ -80,6 +81,7 @@
state.pending = null;
var cur = stream.current(), openPHP = cur.search(/<\?/);
if (openPHP != -1) {
alert("openPHP");
if (style == "string" && /\"$/.test(cur) && !/\?>/.test(cur)) state.pending = '"';
else state.pending = {end: stream.pos, style: style};
stream.backUp(cur.length - openPHP);