We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85fe405 commit b782f9bCopy full SHA for b782f9b
mode/php/php.js
@@ -79,9 +79,9 @@
79
var html = htmlMode.startState();
80
return {html: html,
81
php: phpMode.startState(),
82
- curMode: htmlMode,
83
- curState: html,
84
- curClose: null}
+ curMode: parserConfig.startOpen ? phpMode : htmlMode,
+ curState: parserConfig.startOpen ? phpMode.startState() : html,
+ curClose: parserConfig.startOpen ? /^\?>/ : null}
85
},
86
87
copyState: function(state) {
@@ -106,5 +106,6 @@
106
}
107
});
108
CodeMirror.defineMIME("application/x-httpd-php", "php");
109
+ CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
110
CodeMirror.defineMIME("text/x-php", phpConfig);
111
})();
0 commit comments