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/powershe...
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}, "powershell");
[4] Fix | Delete
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
[5] Fix | Delete
[6] Fix | Delete
MT('comment', '[number 1][comment # A]');
[7] Fix | Delete
MT('comment_multiline', '[number 1][comment <#]',
[8] Fix | Delete
'[comment ABC]',
[9] Fix | Delete
'[comment #>][number 2]');
[10] Fix | Delete
[11] Fix | Delete
[
[12] Fix | Delete
'0', '1234',
[13] Fix | Delete
'12kb', '12mb', '12Gb', '12Tb', '12PB', '12L', '12D', '12lkb', '12dtb',
[14] Fix | Delete
'1.234', '1.234e56', '1.', '1.e2', '.2', '.2e34',
[15] Fix | Delete
'1.2MB', '1.kb', '.1dTB', '1.e1gb', '.2', '.2e34',
[16] Fix | Delete
'0x1', '0xabcdef', '0x3tb', '0xelmb'
[17] Fix | Delete
].forEach(function(number) {
[18] Fix | Delete
MT("number_" + number, "[number " + number + "]");
[19] Fix | Delete
});
[20] Fix | Delete
[21] Fix | Delete
MT('string_literal_escaping', "[string 'a''']");
[22] Fix | Delete
MT('string_literal_variable', "[string 'a $x']");
[23] Fix | Delete
MT('string_escaping_1', '[string "a `""]');
[24] Fix | Delete
MT('string_escaping_2', '[string "a """]');
[25] Fix | Delete
MT('string_variable_escaping', '[string "a `$x"]');
[26] Fix | Delete
MT('string_variable', '[string "a ][variable-2 $x][string b"]');
[27] Fix | Delete
MT('string_variable_spaces', '[string "a ][variable-2 ${x y}][string b"]');
[28] Fix | Delete
MT('string_expression', '[string "a ][punctuation jQuery(][variable-2 $x][operator +][number 3][punctuation )][string b"]');
[29] Fix | Delete
MT('string_expression_nested', '[string "A][punctuation jQuery(][string "a][punctuation jQuery(][string "w"][punctuation )][string b"][punctuation )][string B"]');
[30] Fix | Delete
[31] Fix | Delete
MT('string_heredoc', '[string @"]',
[32] Fix | Delete
'[string abc]',
[33] Fix | Delete
'[string "@]');
[34] Fix | Delete
MT('string_heredoc_quotes', '[string @"]',
[35] Fix | Delete
'[string abc "\']',
[36] Fix | Delete
'[string "@]');
[37] Fix | Delete
MT('string_heredoc_variable', '[string @"]',
[38] Fix | Delete
'[string a ][variable-2 $x][string b]',
[39] Fix | Delete
'[string "@]');
[40] Fix | Delete
MT('string_heredoc_nested_string', '[string @"]',
[41] Fix | Delete
'[string a][punctuation jQuery(][string "w"][punctuation )][string b]',
[42] Fix | Delete
'[string "@]');
[43] Fix | Delete
MT('string_heredoc_literal_quotes', "[string @']",
[44] Fix | Delete
'[string abc "\']',
[45] Fix | Delete
"[string '@]");
[46] Fix | Delete
[47] Fix | Delete
MT('array', "[punctuation @(][string 'a'][punctuation ,][string 'b'][punctuation )]");
[48] Fix | Delete
MT('hash', "[punctuation @{][string 'key'][operator :][string 'value'][punctuation }]");
[49] Fix | Delete
[50] Fix | Delete
MT('variable', "[variable-2 $test]");
[51] Fix | Delete
MT('variable_global', "[variable-2 $global:test]");
[52] Fix | Delete
MT('variable_spaces', "[variable-2 ${test test}]");
[53] Fix | Delete
MT('operator_splat', "[variable-2 @x]");
[54] Fix | Delete
MT('variable_builtin', "[builtin $ErrorActionPreference]");
[55] Fix | Delete
MT('variable_builtin_symbols', "[builtin $$]");
[56] Fix | Delete
[57] Fix | Delete
MT('operator', "[operator +]");
[58] Fix | Delete
MT('operator_unary', "[operator +][number 3]");
[59] Fix | Delete
MT('operator_long', "[operator -match]");
[60] Fix | Delete
[61] Fix | Delete
[
[62] Fix | Delete
'(', ')', '[[', ']]', '{', '}', ',', '`', ';', '.'
[63] Fix | Delete
].forEach(function(punctuation) {
[64] Fix | Delete
MT("punctuation_" + punctuation.replace(/^[\[\]]/,''), "[punctuation " + punctuation + "]");
[65] Fix | Delete
});
[66] Fix | Delete
[67] Fix | Delete
MT('keyword', "[keyword if]");
[68] Fix | Delete
[69] Fix | Delete
MT('call_builtin', "[builtin Get-ChildItem]");
[70] Fix | Delete
})();
[71] Fix | Delete
[72] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function