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/handleba...
File: handlebars.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("../../addon/mode/simple"), require("../../addon/mode/multiplex"));
[5] Fix | Delete
else if (typeof define == "function" && define.amd) // AMD
[6] Fix | Delete
define(["../../lib/codemirror", "../../addon/mode/simple", "../../addon/mode/multiplex"], 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.defineSimpleMode("handlebars-tags", {
[13] Fix | Delete
start: [
[14] Fix | Delete
{ regex: /\{\{!--/, push: "dash_comment", token: "comment" },
[15] Fix | Delete
{ regex: /\{\{!/, push: "comment", token: "comment" },
[16] Fix | Delete
{ regex: /\{\{/, push: "handlebars", token: "tag" }
[17] Fix | Delete
],
[18] Fix | Delete
handlebars: [
[19] Fix | Delete
{ regex: /\}\}/, pop: true, token: "tag" },
[20] Fix | Delete
[21] Fix | Delete
// Double and single quotes
[22] Fix | Delete
{ regex: /"(?:[^\\"]|\\.)*"?/, token: "string" },
[23] Fix | Delete
{ regex: /'(?:[^\\']|\\.)*'?/, token: "string" },
[24] Fix | Delete
[25] Fix | Delete
// Handlebars keywords
[26] Fix | Delete
{ regex: />|[#\/]([A-Za-z_]\w*)/, token: "keyword" },
[27] Fix | Delete
{ regex: /(?:else|this)\b/, token: "keyword" },
[28] Fix | Delete
[29] Fix | Delete
// Numeral
[30] Fix | Delete
{ regex: /\d+/i, token: "number" },
[31] Fix | Delete
[32] Fix | Delete
// Atoms like = and .
[33] Fix | Delete
{ regex: /=|~|@|true|false/, token: "atom" },
[34] Fix | Delete
[35] Fix | Delete
// Paths
[36] Fix | Delete
{ regex: /(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/, token: "variable-2" }
[37] Fix | Delete
],
[38] Fix | Delete
dash_comment: [
[39] Fix | Delete
{ regex: /--\}\}/, pop: true, token: "comment" },
[40] Fix | Delete
[41] Fix | Delete
// Commented code
[42] Fix | Delete
{ regex: /./, token: "comment"}
[43] Fix | Delete
],
[44] Fix | Delete
comment: [
[45] Fix | Delete
{ regex: /\}\}/, pop: true, token: "comment" },
[46] Fix | Delete
{ regex: /./, token: "comment" }
[47] Fix | Delete
]
[48] Fix | Delete
});
[49] Fix | Delete
[50] Fix | Delete
CodeMirror.defineMode("handlebars", function(config, parserConfig) {
[51] Fix | Delete
var handlebars = CodeMirror.getMode(config, "handlebars-tags");
[52] Fix | Delete
if (!parserConfig || !parserConfig.base) return handlebars;
[53] Fix | Delete
return CodeMirror.multiplexingMode(
[54] Fix | Delete
CodeMirror.getMode(config, parserConfig.base),
[55] Fix | Delete
{open: "{{", close: "}}", mode: handlebars, parseDelimiters: true}
[56] Fix | Delete
);
[57] Fix | Delete
});
[58] Fix | Delete
[59] Fix | Delete
CodeMirror.defineMIME("text/x-handlebars-template", "handlebars");
[60] Fix | Delete
});
[61] Fix | Delete
[62] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function