mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: PowerShell highlighter - sample source
This commit is contained in:
parent
7ce51f3b2e
commit
07e1f76a4c
1 changed files with 23 additions and 0 deletions
|
|
@ -6,6 +6,29 @@
|
|||
<History>
|
||||
</History>
|
||||
<Sample>
|
||||
<S># Multiline Comments</S>
|
||||
<S><#</S>
|
||||
<S> Hello</S>
|
||||
<S> world</S>
|
||||
<S>#></S>
|
||||
<S>'Single quoted string'</S>
|
||||
<S>"Double quoted string"</S>
|
||||
<S>@'</S>
|
||||
<S>Single quoted here-string</S>
|
||||
<S>'@</S>
|
||||
<S>@"</S>
|
||||
<S>Double quoted here-string</S>
|
||||
<S>"@</S>
|
||||
<S># Variables</S>
|
||||
<S>$name = 'value'</S>
|
||||
<S># Keywords</S>
|
||||
<S>switch ("fourteen") {}</S>
|
||||
<S># Functions</S>
|
||||
<S>$stpool = (Get-StoragePool -FriendlyName "SpacePool")</S>
|
||||
<S># Aliases</S>
|
||||
<S>Disable-PhysicalDiskIndication -StoragePool $stpool</S>
|
||||
<S># Cmdlets</S>
|
||||
<S>Write-Host -Message 'This is a message'</S>
|
||||
</Sample>
|
||||
</Info>
|
||||
<Scheme File="" Name=""/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue