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/nsis
File: nsis.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
// Author: Jan T. Sott (http://github.com/idleberg)
[3] Fix | Delete
[4] Fix | Delete
(function(mod) {
[5] Fix | Delete
if (typeof exports == "object" && typeof module == "object") // CommonJS
[6] Fix | Delete
mod(require("../../lib/codemirror"), require("../../addon/mode/simple"));
[7] Fix | Delete
else if (typeof define == "function" && define.amd) // AMD
[8] Fix | Delete
define(["../../lib/codemirror", "../../addon/mode/simple"], mod);
[9] Fix | Delete
else // Plain browser env
[10] Fix | Delete
mod(CodeMirror);
[11] Fix | Delete
})(function(CodeMirror) {
[12] Fix | Delete
"use strict";
[13] Fix | Delete
[14] Fix | Delete
CodeMirror.defineSimpleMode("nsis",{
[15] Fix | Delete
start:[
[16] Fix | Delete
// Numbers
[17] Fix | Delete
{regex: /(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/, token: "number"},
[18] Fix | Delete
[19] Fix | Delete
// Strings
[20] Fix | Delete
{ regex: /"(?:[^\\"]|\\.)*"?/, token: "string" },
[21] Fix | Delete
{ regex: /'(?:[^\\']|\\.)*'?/, token: "string" },
[22] Fix | Delete
{ regex: /`(?:[^\\`]|\\.)*`?/, token: "string" },
[23] Fix | Delete
[24] Fix | Delete
// Compile Time Commands
[25] Fix | Delete
{regex: /(?:\!(include|addincludedir|addplugindir|appendfile|cd|delfile|echo|error|execute|packhdr|finalize|getdllversion|system|tempfile|warning|verbose|define|undef|insertmacro|makensis|searchparse|searchreplace))\b/, token: "keyword"},
[26] Fix | Delete
[27] Fix | Delete
// Conditional Compilation
[28] Fix | Delete
{regex: /(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/, token: "keyword", indent: true},
[29] Fix | Delete
{regex: /(?:\!(else|endif|macroend))\b/, token: "keyword", dedent: true},
[30] Fix | Delete
[31] Fix | Delete
// Runtime Commands
[32] Fix | Delete
{regex: /\b(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetLabelAddress|GetTempFileName|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|IntCmp|IntCmpU|IntFmt|IntOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetPluginUnload|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegStr|WriteUninstaller|XPStyle)\b/, token: "keyword"},
[33] Fix | Delete
{regex: /\b(?:Function|PageEx|Section(?:Group)?)\b/, token: "keyword", indent: true},
[34] Fix | Delete
{regex: /\b(?:(Function|PageEx|Section(?:Group)?)End)\b/, token: "keyword", dedent: true},
[35] Fix | Delete
[36] Fix | Delete
// Command Options
[37] Fix | Delete
{regex: /\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/, token: "atom"},
[38] Fix | Delete
{regex: /\b(?:admin|all|auto|both|bottom|bzip2|components|current|custom|directory|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|right|show|silent|silentlog|textonly|top|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|zlib)\b/, token: "builtin"},
[39] Fix | Delete
[40] Fix | Delete
// LogicLib.nsh
[41] Fix | Delete
{regex: /\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/, token: "variable-2", indent: true},
[42] Fix | Delete
[43] Fix | Delete
// FileFunc.nsh
[44] Fix | Delete
{regex: /\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/, token: "variable-2", dedent: true},
[45] Fix | Delete
[46] Fix | Delete
// Memento.nsh
[47] Fix | Delete
{regex: /\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/, token: "variable-2", dedent: true},
[48] Fix | Delete
[49] Fix | Delete
// TextFunc.nsh
[50] Fix | Delete
{regex: /\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/, token: "variable-2", dedent: true},
[51] Fix | Delete
[52] Fix | Delete
// WinVer.nsh
[53] Fix | Delete
{regex: /\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/, token: "variable", dedent: true},
[54] Fix | Delete
[55] Fix | Delete
// WordFunc.nsh
[56] Fix | Delete
{regex: /\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/, token: "variable-2", dedent: true},
[57] Fix | Delete
[58] Fix | Delete
// x64.nsh
[59] Fix | Delete
{regex: /\$\{(?:RunningX64)\}/, token: "variable", dedent: true},
[60] Fix | Delete
{regex: /\$\{(?:Disable|Enable)X64FSRedirection\}/, token: "variable-2", dedent: true},
[61] Fix | Delete
[62] Fix | Delete
// Line Comment
[63] Fix | Delete
{regex: /(#|;).*/, token: "comment"},
[64] Fix | Delete
[65] Fix | Delete
// Block Comment
[66] Fix | Delete
{regex: /\/\*/, token: "comment", next: "comment"},
[67] Fix | Delete
[68] Fix | Delete
// Operator
[69] Fix | Delete
{regex: /[-+\/*=<>!]+/, token: "operator"},
[70] Fix | Delete
[71] Fix | Delete
// Variable
[72] Fix | Delete
{regex: /\$[\w]+/, token: "variable"},
[73] Fix | Delete
[74] Fix | Delete
// Constant
[75] Fix | Delete
{regex: /\${[\w]+}/,token: "variable-2"},
[76] Fix | Delete
[77] Fix | Delete
// Language String
[78] Fix | Delete
{regex: /\$\([\w]+\)/,token: "variable-3"}
[79] Fix | Delete
],
[80] Fix | Delete
comment: [
[81] Fix | Delete
{regex: /.*?\*\//, token: "comment", next: "start"},
[82] Fix | Delete
{regex: /.*/, token: "comment"}
[83] Fix | Delete
],
[84] Fix | Delete
meta: {
[85] Fix | Delete
electricInput: /^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/,
[86] Fix | Delete
blockCommentStart: "/*",
[87] Fix | Delete
blockCommentEnd: "*/",
[88] Fix | Delete
lineComment: ["#", ";"]
[89] Fix | Delete
}
[90] Fix | Delete
});
[91] Fix | Delete
[92] Fix | Delete
CodeMirror.defineMIME("text/x-nsis", "nsis");
[93] Fix | Delete
});
[94] Fix | Delete
[95] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function