1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
{1}# Enumerate all styles: 0 to 16{0}
{1}# line comment = 1{0}
{1}# more comment{0}
{1}# whitespace = 0{0}
{1}# spaces{0}
{1}# string = 2{0}
{2}"a string"{0}
{1}# character = 3{0}
{3}'c'{0}
{1}# number = 4{0}
{4}123{0}
{1}# variable = 5{0}
{5}$variable{0}
{1}# operator = 6{0}
{6}();{0}
{1}# identifier = 7{0}
{7}identifier{0}
{1}# keyword = 8{0}
{8}break{0}
{6};{0}
{1}# cmdlet = 9{0}
{9}Write-Output{0} {2}"test output"{0}
{1}# alias = 10{0}
{10}chdir{0} {7}C{6}:{0}\{7}Temp{0}\
{1}# function = 11{0}
{11}Get-Verb{0} {6}-{7}Group{0} {7}Security{0}
{1}# user-defined keyword = 12{0}
{12}lexilla{0}
{1}# multi-line comment = 13{0}
{13}<#
multi-line comment
#>{0}
{1}# here string = 14{0}
{14}@"
here string double
"@{0}
{1}# here string single quote = 15{0}
{15}@'
here string single
'@{0}
{1}# comment keyword = 16{0}
{13}<#
{16}.synopsis{13}
End of file.
#>{0}
|