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/xml
File: test.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() {
[3] Fix | Delete
var mode = CodeMirror.getMode({indentUnit: 2}, "xml"), mname = "xml";
[4] Fix | Delete
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), mname); }
[5] Fix | Delete
[6] Fix | Delete
MT("matching",
[7] Fix | Delete
"[tag&bracket <][tag top][tag&bracket >]",
[8] Fix | Delete
" text",
[9] Fix | Delete
" [tag&bracket <][tag inner][tag&bracket />]",
[10] Fix | Delete
"[tag&bracket </][tag top][tag&bracket >]");
[11] Fix | Delete
[12] Fix | Delete
MT("nonmatching",
[13] Fix | Delete
"[tag&bracket <][tag top][tag&bracket >]",
[14] Fix | Delete
" [tag&bracket <][tag inner][tag&bracket />]",
[15] Fix | Delete
" [tag&bracket </][tag&error tip][tag&bracket&error >]");
[16] Fix | Delete
[17] Fix | Delete
MT("doctype",
[18] Fix | Delete
"[meta <!doctype foobar>]",
[19] Fix | Delete
"[tag&bracket <][tag top][tag&bracket />]");
[20] Fix | Delete
[21] Fix | Delete
MT("cdata",
[22] Fix | Delete
"[tag&bracket <][tag top][tag&bracket >]",
[23] Fix | Delete
" [atom <![CDATA[foo]",
[24] Fix | Delete
"[atom barbazguh]]]]>]",
[25] Fix | Delete
"[tag&bracket </][tag top][tag&bracket >]");
[26] Fix | Delete
[27] Fix | Delete
// HTML tests
[28] Fix | Delete
mode = CodeMirror.getMode({indentUnit: 2}, "text/html");
[29] Fix | Delete
[30] Fix | Delete
MT("selfclose",
[31] Fix | Delete
"[tag&bracket <][tag html][tag&bracket >]",
[32] Fix | Delete
" [tag&bracket <][tag link] [attribute rel]=[string stylesheet] [attribute href]=[string \"/foobar\"][tag&bracket >]",
[33] Fix | Delete
"[tag&bracket </][tag html][tag&bracket >]");
[34] Fix | Delete
[35] Fix | Delete
MT("list",
[36] Fix | Delete
"[tag&bracket <][tag ol][tag&bracket >]",
[37] Fix | Delete
" [tag&bracket <][tag li][tag&bracket >]one",
[38] Fix | Delete
" [tag&bracket <][tag li][tag&bracket >]two",
[39] Fix | Delete
"[tag&bracket </][tag ol][tag&bracket >]");
[40] Fix | Delete
[41] Fix | Delete
MT("valueless",
[42] Fix | Delete
"[tag&bracket <][tag input] [attribute type]=[string checkbox] [attribute checked][tag&bracket />]");
[43] Fix | Delete
[44] Fix | Delete
MT("pThenArticle",
[45] Fix | Delete
"[tag&bracket <][tag p][tag&bracket >]",
[46] Fix | Delete
" foo",
[47] Fix | Delete
"[tag&bracket <][tag article][tag&bracket >]bar");
[48] Fix | Delete
[49] Fix | Delete
})();
[50] Fix | Delete
[51] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function