1# Define SciTE settings for PowerShell files 2 3file.patterns.powershell=*.ps1 4 5filter.powershell=PowerShell (ps1)|$(file.patterns.powershell)| 6 7*filter.powershell=$(filter.powershell) 8 9lexer.$(file.patterns.powershell)=powershell 10 11*language.powershell=PowerShell|ps1|| 12 13word.characters.$(file.patterns.powershell)=$(chars.alpha)$(chars.numeric)_-$ 14 15# Keywords 16keywords.$(file.patterns.powershell)=\ 17begin break catch continue data do dynamicparam else elseif end exit filter \ 18finally for foreach from function if in local param private process return \ 19switch throw trap try until where while 20 21# Cmdlets 22keywords2.$(file.patterns.powershell)=\ 23add-computer add-content add-history add-member add-pssnapin add-type \ 24checkpoint-computer clear-content clear-eventlog clear-history clear-item \ 25clear-itemproperty clear-variable compare-object complete-transaction \ 26connect-wsman convert-path convertfrom-csv convertfrom-securestring \ 27convertfrom-stringdata convertto-csv convertto-html convertto-securestring \ 28convertto-xml copy-item copy-itemproperty debug-process disable-computerrestore \ 29disable-psbreakpoint disable-pssessionconfiguration disable-wsmancredssp \ 30disconnect-wsman enable-computerrestore enable-psbreakpoint enable-psremoting \ 31enable-pssessionconfiguration enable-wsmancredssp enter-pssession exit-pssession \ 32export-alias export-clixml export-console export-counter export-csv \ 33export-formatdata export-modulemember export-pssession foreach-object \ 34format-custom format-list format-table format-wide get-acl get-alias \ 35get-authenticodesignature get-childitem get-command get-computerrestorepoint \ 36get-content get-counter get-credential get-culture get-date get-event \ 37get-eventlog get-eventsubscriber get-executionpolicy get-formatdata get-help \ 38get-history get-host get-hotfix get-item get-itemproperty get-job get-location \ 39get-member get-module get-psbreakpoint get-pscallstack get-psdrive \ 40get-psprovider get-pssession get-pssessionconfiguration get-pssnapin \ 41get-pfxcertificate get-process get-random get-service get-tracesource \ 42get-transaction get-uiculture get-unique get-variable get-wsmancredssp \ 43get-wsmaninstance get-winevent get-wmiobject group-object import-alias \ 44import-clixml import-counter import-csv import-localizeddata import-module \ 45import-pssession invoke-command invoke-expression invoke-history invoke-item \ 46invoke-wsmanaction invoke-wmimethod join-path limit-eventlog measure-command \ 47measure-object move-item move-itemproperty new-alias new-event new-eventlog \ 48new-item new-itemproperty new-module new-modulemanifest new-object new-psdrive \ 49new-pssession new-pssessionoption new-service new-timespan new-variable \ 50new-wsmaninstance new-wsmansessionoption new-webserviceproxy out-default \ 51out-file out-gridview out-host out-null out-printer out-string pop-location \ 52push-location read-host receive-job register-engineevent register-objectevent \ 53register-pssessionconfiguration register-wmievent remove-computer remove-event \ 54remove-eventlog remove-item remove-itemproperty remove-job remove-module \ 55remove-psbreakpoint remove-psdrive remove-pssession remove-pssnapin \ 56remove-variable remove-wsmaninstance remove-wmiobject rename-item \ 57rename-itemproperty reset-computermachinepassword resolve-path restart-computer \ 58restart-service restore-computer resume-service select-object select-string \ 59select-xml send-mailmessage set-acl set-alias set-authenticodesignature \ 60set-content set-date set-executionpolicy set-item set-itemproperty set-location \ 61set-psbreakpoint set-psdebug set-pssessionconfiguration set-service \ 62set-strictmode set-tracesource set-variable set-wsmaninstance \ 63set-wsmanquickconfig set-wmiinstance show-eventlog sort-object split-path \ 64start-job start-process start-service start-sleep start-transaction \ 65start-transcript stop-computer stop-job stop-process stop-service \ 66stop-transcript suspend-service tee-object test-computersecurechannel \ 67test-connection test-modulemanifest test-path test-wsman trace-command \ 68undo-transaction unregister-event unregister-pssessionconfiguration \ 69update-formatdata update-list update-typedata use-transaction wait-event \ 70wait-job wait-process where-object write-debug write-error write-eventlog \ 71write-host write-output write-progress write-verbose write-warning 72 73# Aliases 74keywords3.$(file.patterns.powershell)=\ 75ac asnp cat cd chdir clc clear clhy cli clp cls clv compare copy cp cpi cpp cvpa \ 76dbp del diff dir ebp echo epal epcsv epsn erase etsn exsn fc fl foreach ft fw \ 77gal gbp gc gci gcm gcs gdr ghy gi gjb gl gm gmo gp gps group gsn gsnp gsv gu gv \ 78gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn ise iwmi kill lp ls man md \ 79measure mi mount move mp mv nal ndr ni nmo nsn nv ogv oh popd ps pushd pwd r rbp \ 80rcjb rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rv rvpa rwmi sajb sal \ 81saps sasv sbp sc select set si sl sleep sort sp spjb spps spsv start sv swmi tee \ 82type where wjb write 83 84# Functions 85keywords4.$(file.patterns.powershell)=\ 86clear-host disable-psremoting enable-psremoting get-verb help importsystemmodules \ 87mkdir more prompt psedit tabexpansion 88 89# User-defined keywords 90#keywords5.$(file.patterns.powershell)= 91 92# Comments 93comment.block.powershell=#~ 94comment.block.at.line.start.powershell=1 95 96# PowerShell Styles 97# Default 98style.powershell.0=fore:#000000 99# Comment 100style.powershell.1=fore:#008000 101# String 102style.powershell.2=fore:#800000 103# Character 104style.powershell.3=fore:#800000 105# Number 106style.powershell.4=fore:#FF0000 107# Variable 108style.powershell.5=fore:#800080 109# Operator 110style.powershell.6=fore:#000000,bold 111# Identifier 112style.powershell.7=$(style.powershell.0) 113# Keyword 114style.powershell.8=fore:#000080,bold 115# Cmdlet 116style.powershell.9=fore:#008080,bold 117# Alias 118style.powershell.10=fore:#008080,italics 119# Function 120style.powershell.11=fore:#808000,bold 121# User-defined keyword 122style.powershell.12= 123# Comment (multi-line) 124style.powershell.13=$(style.powershell.1) 125# Here-string 126style.powershell.14=fore:#7F007F,back:#DDD0DD,eolfilled,bold 127# Here-string single quote 128style.powershell.15=fore:#7F007F,back:#DDD0DD,eolfilled,notbold 129# Comment keyword 130style.powershell.16=fore:#3060A0 131