Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-file-.../lib/codemirr.../mode/properti...
File: properties.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"));
[5] Fix | Delete
else if (typeof define == "function" && define.amd) // AMD
[6] Fix | Delete
define(["../../lib/codemirror"], mod);
[7] Fix | Delete
else // Plain browser env
[8] Fix | Delete
mod(CodeMirror);
[9] Fix | Delete
})(function(CodeMirror) {
[10] Fix | Delete
"use strict";
[11] Fix | Delete
[12] Fix | Delete
CodeMirror.defineMode("properties", function() {
[13] Fix | Delete
return {
[14] Fix | Delete
token: function(stream, state) {
[15] Fix | Delete
var sol = stream.sol() || state.afterSection;
[16] Fix | Delete
var eol = stream.eol();
[17] Fix | Delete
[18] Fix | Delete
state.afterSection = false;
[19] Fix | Delete
[20] Fix | Delete
if (sol) {
[21] Fix | Delete
if (state.nextMultiline) {
[22] Fix | Delete
state.inMultiline = true;
[23] Fix | Delete
state.nextMultiline = false;
[24] Fix | Delete
} else {
[25] Fix | Delete
state.position = "def";
[26] Fix | Delete
}
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
if (eol && ! state.nextMultiline) {
[30] Fix | Delete
state.inMultiline = false;
[31] Fix | Delete
state.position = "def";
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
if (sol) {
[35] Fix | Delete
while(stream.eatSpace()) {}
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
var ch = stream.next();
[39] Fix | Delete
[40] Fix | Delete
if (sol && (ch === "#" || ch === "!" || ch === ";")) {
[41] Fix | Delete
state.position = "comment";
[42] Fix | Delete
stream.skipToEnd();
[43] Fix | Delete
return "comment";
[44] Fix | Delete
} else if (sol && ch === "[") {
[45] Fix | Delete
state.afterSection = true;
[46] Fix | Delete
stream.skipTo("]"); stream.eat("]");
[47] Fix | Delete
return "header";
[48] Fix | Delete
} else if (ch === "=" || ch === ":") {
[49] Fix | Delete
state.position = "quote";
[50] Fix | Delete
return null;
[51] Fix | Delete
} else if (ch === "\\" && state.position === "quote") {
[52] Fix | Delete
if (stream.eol()) { // end of line?
[53] Fix | Delete
// Multiline value
[54] Fix | Delete
state.nextMultiline = true;
[55] Fix | Delete
}
[56] Fix | Delete
}
[57] Fix | Delete
[58] Fix | Delete
return state.position;
[59] Fix | Delete
},
[60] Fix | Delete
[61] Fix | Delete
startState: function() {
[62] Fix | Delete
return {
[63] Fix | Delete
position : "def", // Current position, "def", "quote" or "comment"
[64] Fix | Delete
nextMultiline : false, // Is the next line multiline value
[65] Fix | Delete
inMultiline : false, // Is the current line a multiline value
[66] Fix | Delete
afterSection : false // Did we just open a section
[67] Fix | Delete
};
[68] Fix | Delete
}
[69] Fix | Delete
[70] Fix | Delete
};
[71] Fix | Delete
});
[72] Fix | Delete
[73] Fix | Delete
CodeMirror.defineMIME("text/x-properties", "properties");
[74] Fix | Delete
CodeMirror.defineMIME("text/x-ini", "properties");
[75] Fix | Delete
[76] Fix | Delete
});
[77] Fix | Delete
[78] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function