File modules/editor/codemirror/mode/powershell/index.html

Last commit: Sun Dec 17 01:14:09 2017 +0100	Jan Dankert	Integration eines weiteren Code-Editors: Codemirror. Demnächst müssen wir hier mal aufräumen und andere Editoren rauswerfen.
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CodeMirror: Powershell mode</title> 6 <link rel="stylesheet" href="../../doc/docs.css"> 7 <link rel="stylesheet" href="../../lib/codemirror.css"> 8 <script src="../../lib/codemirror.js"></script> 9 <script src="powershell.js"></script> 10 <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> 11 </head> 12 <body> 13 <div id=nav> 14 <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> 15 16 <ul> 17 <li><a href="../../index.html">Home</a> 18 <li><a href="../../doc/manual.html">Manual</a> 19 <li><a href="https://github.com/codemirror/codemirror">Code</a> 20 </ul> 21 <ul> 22 <li><a href="../index.html">Language modes</a> 23 <li><a class=active href="#">JavaScript</a> 24 </ul> 25 </div> 26 <article> 27 <h2>PowerShell mode</h2> 28 29 <div><textarea id="code" name="code"> 30 # Number Literals 31 0 12345 32 12kb 12mb 12gB 12Tb 12PB 12L 12D 12lkb 12dtb 33 1.234 1.234e56 1. 1.e2 .2 .2e34 34 1.2MB 1.kb .1dTb 1.e1gb 35 0x1 0xabcdef 0x3tb 0xelmb 36 37 # String Literals 38 'Literal escaping''' 39 'Literal $variable' 40 "Escaping 1`"" 41 "Escaping 2""" 42 "Escaped `$variable" 43 "Text, $variable and more text" 44 "Text, ${variable with spaces} and more text." 45 "Text, $($expression + 3) and more text." 46 "Text, $("interpolation $("inception")") and more text." 47 48 @" 49 Multiline 50 string 51 "@ 52 # -- 53 @" 54 Multiline 55 string with quotes "' 56 "@ 57 # -- 58 @' 59 Multiline literal 60 string with quotes "' 61 '@ 62 63 # Array and Hash literals 64 @( 'a','b','c' ) 65 @{ 'key': 'value' } 66 67 # Variables 68 $Variable = 5 69 $global:variable = 5 70 ${Variable with spaces} = 5 71 72 # Operators 73 = += -= *= /= %= 74 ++ -- .. -f * / % + - 75 -not ! -bnot 76 -split -isplit -csplit 77 -join 78 -is -isnot -as 79 -eq -ieq -ceq -ne -ine -cne 80 -gt -igt -cgt -ge -ige -cge 81 -lt -ilt -clt -le -ile -cle 82 -like -ilike -clike -notlike -inotlike -cnotlike 83 -match -imatch -cmatch -notmatch -inotmatch -cnotmatch 84 -contains -icontains -ccontains -notcontains -inotcontains -cnotcontains 85 -replace -ireplace -creplace 86 -band -bor -bxor 87 -and -or -xor 88 89 # Punctuation 90 () [] {} , : ` = ; . 91 92 # Keywords 93 elseif begin function for foreach return else trap while do data dynamicparam 94 until end break if throw param continue finally in switch exit filter from try 95 process catch 96 97 # Built-in variables 98 $$ $? $^ $_ 99 $args $ConfirmPreference $ConsoleFileName $DebugPreference $Error 100 $ErrorActionPreference $ErrorView $ExecutionContext $false $FormatEnumerationLimit 101 $HOME $Host $input $MaximumAliasCount $MaximumDriveCount $MaximumErrorCount 102 $MaximumFunctionCount $MaximumHistoryCount $MaximumVariableCount $MyInvocation 103 $NestedPromptLevel $null $OutputEncoding $PID $PROFILE $ProgressPreference 104 $PSBoundParameters $PSCommandPath $PSCulture $PSDefaultParameterValues 105 $PSEmailServer $PSHOME $PSScriptRoot $PSSessionApplicationName 106 $PSSessionConfigurationName $PSSessionOption $PSUICulture $PSVersionTable $PWD 107 $ShellId $StackTrace $true $VerbosePreference $WarningPreference $WhatIfPreference 108 $true $false $null 109 110 # Built-in functions 111 A: 112 Add-Computer Add-Content Add-History Add-Member Add-PSSnapin Add-Type 113 B: 114 C: 115 Checkpoint-Computer Clear-Content Clear-EventLog Clear-History Clear-Host Clear-Item 116 Clear-ItemProperty Clear-Variable Compare-Object Complete-Transaction Connect-PSSession 117 ConvertFrom-Csv ConvertFrom-Json ConvertFrom-SecureString ConvertFrom-StringData 118 Convert-Path ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-SecureString 119 ConvertTo-Xml Copy-Item Copy-ItemProperty 120 D: 121 Debug-Process Disable-ComputerRestore Disable-PSBreakpoint Disable-PSRemoting 122 Disable-PSSessionConfiguration Disconnect-PSSession 123 E: 124 Enable-ComputerRestore Enable-PSBreakpoint Enable-PSRemoting Enable-PSSessionConfiguration 125 Enter-PSSession Exit-PSSession Export-Alias Export-Clixml Export-Console Export-Counter 126 Export-Csv Export-FormatData Export-ModuleMember Export-PSSession 127 F: 128 ForEach-Object Format-Custom Format-List Format-Table Format-Wide 129 G: 130 Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-ComputerRestorePoint 131 Get-Content Get-ControlPanelItem Get-Counter Get-Credential Get-Culture Get-Date 132 Get-Event Get-EventLog Get-EventSubscriber Get-ExecutionPolicy Get-FormatData Get-Help 133 Get-History Get-Host Get-HotFix Get-Item Get-ItemProperty Get-Job Get-Location Get-Member 134 Get-Module Get-PfxCertificate Get-Process Get-PSBreakpoint Get-PSCallStack Get-PSDrive 135 Get-PSProvider Get-PSSession Get-PSSessionConfiguration Get-PSSnapin Get-Random Get-Service 136 Get-TraceSource Get-Transaction Get-TypeData Get-UICulture Get-Unique Get-Variable Get-Verb 137 Get-WinEvent Get-WmiObject Group-Object 138 H: 139 help 140 I: 141 Import-Alias Import-Clixml Import-Counter Import-Csv Import-LocalizedData Import-Module 142 Import-PSSession ImportSystemModules Invoke-Command Invoke-Expression Invoke-History 143 Invoke-Item Invoke-RestMethod Invoke-WebRequest Invoke-WmiMethod 144 J: 145 Join-Path 146 K: 147 L: 148 Limit-EventLog 149 M: 150 Measure-Command Measure-Object mkdir more Move-Item Move-ItemProperty 151 N: 152 New-Alias New-Event New-EventLog New-Item New-ItemProperty New-Module New-ModuleManifest 153 New-Object New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption 154 New-PSTransportOption New-Service New-TimeSpan New-Variable New-WebServiceProxy 155 New-WinEvent 156 O: 157 oss Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String 158 P: 159 Pause Pop-Location prompt Push-Location 160 Q: 161 R: 162 Read-Host Receive-Job Receive-PSSession Register-EngineEvent Register-ObjectEvent 163 Register-PSSessionConfiguration Register-WmiEvent Remove-Computer Remove-Event 164 Remove-EventLog Remove-Item Remove-ItemProperty Remove-Job Remove-Module 165 Remove-PSBreakpoint Remove-PSDrive Remove-PSSession Remove-PSSnapin Remove-TypeData 166 Remove-Variable Remove-WmiObject Rename-Computer Rename-Item Rename-ItemProperty 167 Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service 168 Restore-Computer Resume-Job Resume-Service 169 S: 170 Save-Help Select-Object Select-String Select-Xml Send-MailMessage Set-Acl Set-Alias 171 Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item 172 Set-ItemProperty Set-Location Set-PSBreakpoint Set-PSDebug 173 Set-PSSessionConfiguration Set-Service Set-StrictMode Set-TraceSource Set-Variable 174 Set-WmiInstance Show-Command Show-ControlPanelItem Show-EventLog Sort-Object 175 Split-Path Start-Job Start-Process Start-Service Start-Sleep Start-Transaction 176 Start-Transcript Stop-Computer Stop-Job Stop-Process Stop-Service Stop-Transcript 177 Suspend-Job Suspend-Service 178 T: 179 TabExpansion2 Tee-Object Test-ComputerSecureChannel Test-Connection 180 Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile Trace-Command 181 U: 182 Unblock-File Undo-Transaction Unregister-Event Unregister-PSSessionConfiguration 183 Update-FormatData Update-Help Update-List Update-TypeData Use-Transaction 184 V: 185 W: 186 Wait-Event Wait-Job Wait-Process Where-Object Write-Debug Write-Error Write-EventLog 187 Write-Host Write-Output Write-Progress Write-Verbose Write-Warning 188 X: 189 Y: 190 Z:</textarea></div> 191 <script> 192 var editor = CodeMirror.fromTextArea(document.getElementById("code"), { 193 mode: "powershell", 194 lineNumbers: true, 195 indentUnit: 4, 196 tabMode: "shift", 197 matchBrackets: true 198 }); 199 </script> 200 201 <p><strong>MIME types defined:</strong> <code>application/x-powershell</code>.</p> 202 </article> 203 </body> 204 </html>
Download modules/editor/codemirror/mode/powershell/index.html
History Sun, 17 Dec 2017 01:14:09 +0100 Jan Dankert Integration eines weiteren Code-Editors: Codemirror. Demnächst müssen wir hier mal aufräumen und andere Editoren rauswerfen.