Page 1 of 1

Powershell variables

Posted: 31 May 2013 07:51
by Dmitry D.
Hello.
Please, help me with highligting variables in Powershell:
Words that begin with $ sign —
$item = ***
$web.GetSomething

with best regards.

Re: Powershell variables

Posted: 03 Jun 2013 13:04
by Rickard Johansson
You could use blocks, e.g.

[Block]
1_Name=Variable $
1_OnLine=1
1_AsString=1
1_Start=$
1_End=

Take a look at the Pearl syntax files.

Re: Powershell variables

Posted: 05 Jun 2013 08:08
by Dmitry D.
Thank you, Rickard.
I'll try.

Re: Powershell variables

Posted: 10 Jan 2015 09:36
by whitecrow4
Yes! Maybe something like this (not tested...)

[Keywords]
#Function names=_[0-9a-fA-F_]+