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