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/haml
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({tabSize: 4, indentUnit: 2}, "haml");
[4] Fix | Delete
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
[5] Fix | Delete
[6] Fix | Delete
// Requires at least one media query
[7] Fix | Delete
MT("elementName",
[8] Fix | Delete
"[tag %h1] Hey There");
[9] Fix | Delete
[10] Fix | Delete
MT("oneElementPerLine",
[11] Fix | Delete
"[tag %h1] Hey There %h2");
[12] Fix | Delete
[13] Fix | Delete
MT("idSelector",
[14] Fix | Delete
"[tag %h1][attribute #test] Hey There");
[15] Fix | Delete
[16] Fix | Delete
MT("classSelector",
[17] Fix | Delete
"[tag %h1][attribute .hello] Hey There");
[18] Fix | Delete
[19] Fix | Delete
MT("docType",
[20] Fix | Delete
"[tag !!! XML]");
[21] Fix | Delete
[22] Fix | Delete
MT("comment",
[23] Fix | Delete
"[comment / Hello WORLD]");
[24] Fix | Delete
[25] Fix | Delete
MT("notComment",
[26] Fix | Delete
"[tag %h1] This is not a / comment ");
[27] Fix | Delete
[28] Fix | Delete
MT("attributes",
[29] Fix | Delete
"[tag %a]([variable title][operator =][string \"test\"]){[atom :title] [operator =>] [string \"test\"]}");
[30] Fix | Delete
[31] Fix | Delete
MT("htmlCode",
[32] Fix | Delete
"[tag&bracket <][tag h1][tag&bracket >]Title[tag&bracket </][tag h1][tag&bracket >]");
[33] Fix | Delete
[34] Fix | Delete
MT("rubyBlock",
[35] Fix | Delete
"[operator =][variable-2 @item]");
[36] Fix | Delete
[37] Fix | Delete
MT("selectorRubyBlock",
[38] Fix | Delete
"[tag %a.selector=] [variable-2 @item]");
[39] Fix | Delete
[40] Fix | Delete
MT("nestedRubyBlock",
[41] Fix | Delete
"[tag %a]",
[42] Fix | Delete
" [operator =][variable puts] [string \"test\"]");
[43] Fix | Delete
[44] Fix | Delete
MT("multilinePlaintext",
[45] Fix | Delete
"[tag %p]",
[46] Fix | Delete
" Hello,",
[47] Fix | Delete
" World");
[48] Fix | Delete
[49] Fix | Delete
MT("multilineRuby",
[50] Fix | Delete
"[tag %p]",
[51] Fix | Delete
" [comment -# this is a comment]",
[52] Fix | Delete
" [comment and this is a comment too]",
[53] Fix | Delete
" Date/Time",
[54] Fix | Delete
" [operator -] [variable now] [operator =] [tag DateTime][operator .][property now]",
[55] Fix | Delete
" [tag %strong=] [variable now]",
[56] Fix | Delete
" [operator -] [keyword if] [variable now] [operator >] [tag DateTime][operator .][property parse]([string \"December 31, 2006\"])",
[57] Fix | Delete
" [operator =][string \"Happy\"]",
[58] Fix | Delete
" [operator =][string \"Belated\"]",
[59] Fix | Delete
" [operator =][string \"Birthday\"]");
[60] Fix | Delete
[61] Fix | Delete
MT("multilineComment",
[62] Fix | Delete
"[comment /]",
[63] Fix | Delete
" [comment Multiline]",
[64] Fix | Delete
" [comment Comment]");
[65] Fix | Delete
[66] Fix | Delete
MT("hamlComment",
[67] Fix | Delete
"[comment -# this is a comment]");
[68] Fix | Delete
[69] Fix | Delete
MT("multilineHamlComment",
[70] Fix | Delete
"[comment -# this is a comment]",
[71] Fix | Delete
" [comment and this is a comment too]");
[72] Fix | Delete
[73] Fix | Delete
MT("multilineHTMLComment",
[74] Fix | Delete
"[comment <!--]",
[75] Fix | Delete
" [comment what a comment]",
[76] Fix | Delete
" [comment -->]");
[77] Fix | Delete
[78] Fix | Delete
MT("hamlAfterRubyTag",
[79] Fix | Delete
"[attribute .block]",
[80] Fix | Delete
" [tag %strong=] [variable now]",
[81] Fix | Delete
" [attribute .test]",
[82] Fix | Delete
" [operator =][variable now]",
[83] Fix | Delete
" [attribute .right]");
[84] Fix | Delete
[85] Fix | Delete
MT("stretchedRuby",
[86] Fix | Delete
"[operator =] [variable puts] [string \"Hello\"],",
[87] Fix | Delete
" [string \"World\"]");
[88] Fix | Delete
[89] Fix | Delete
MT("interpolationInHashAttribute",
[90] Fix | Delete
//"[tag %div]{[atom :id] [operator =>] [string \"#{][variable test][string }_#{][variable ting][string }\"]} test");
[91] Fix | Delete
"[tag %div]{[atom :id] [operator =>] [string \"#{][variable test][string }_#{][variable ting][string }\"]} test");
[92] Fix | Delete
[93] Fix | Delete
MT("interpolationInHTMLAttribute",
[94] Fix | Delete
"[tag %div]([variable title][operator =][string \"#{][variable test][string }_#{][variable ting]()[string }\"]) Test");
[95] Fix | Delete
})();
[96] Fix | Delete
[97] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function