Edit File by line
/home/barbar84/www/wp-conte.../plugins/wp-file-.../lib/codemirr.../mode/htmlembe...
File: htmlembedded.js
// CodeMirror, copyright (c) by Marijn Haverbeke and others
[0] Fix | Delete
// Distributed under an MIT license: http://codemirror.net/LICENSE
[1] Fix | Delete
[2] Fix | Delete
(function(mod) {
[3] Fix | Delete
if (typeof exports == "object" && typeof module == "object") // CommonJS
[4] Fix | Delete
mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"),
[5] Fix | Delete
require("../../addon/mode/multiplex"));
[6] Fix | Delete
else if (typeof define == "function" && define.amd) // AMD
[7] Fix | Delete
define(["../../lib/codemirror", "../htmlmixed/htmlmixed",
[8] Fix | Delete
"../../addon/mode/multiplex"], mod);
[9] Fix | Delete
else // Plain browser env
[10] Fix | Delete
mod(CodeMirror);
[11] Fix | Delete
})(function(CodeMirror) {
[12] Fix | Delete
"use strict";
[13] Fix | Delete
[14] Fix | Delete
CodeMirror.defineMode("htmlembedded", function(config, parserConfig) {
[15] Fix | Delete
return CodeMirror.multiplexingMode(CodeMirror.getMode(config, "htmlmixed"), {
[16] Fix | Delete
open: parserConfig.open || parserConfig.scriptStartRegex || "<%",
[17] Fix | Delete
close: parserConfig.close || parserConfig.scriptEndRegex || "%>",
[18] Fix | Delete
mode: CodeMirror.getMode(config, parserConfig.scriptingModeSpec)
[19] Fix | Delete
});
[20] Fix | Delete
}, "htmlmixed");
[21] Fix | Delete
[22] Fix | Delete
CodeMirror.defineMIME("application/x-ejs", {name: "htmlembedded", scriptingModeSpec:"javascript"});
[23] Fix | Delete
CodeMirror.defineMIME("application/x-aspx", {name: "htmlembedded", scriptingModeSpec:"text/x-csharp"});
[24] Fix | Delete
CodeMirror.defineMIME("application/x-jsp", {name: "htmlembedded", scriptingModeSpec:"text/x-java"});
[25] Fix | Delete
CodeMirror.defineMIME("application/x-erb", {name: "htmlembedded", scriptingModeSpec:"ruby"});
[26] Fix | Delete
});
[27] Fix | Delete
[28] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function