Powershell variables

Discuss syntax highlighting or submit new syntax files.
Post Reply
Dmitry D.
Posts: 11
Joined: 15 Mar 2011 08:55

Powershell variables

Post by Dmitry D. »

Hello.
Please, help me with highligting variables in Powershell:
Words that begin with $ sign —
$item = ***
$web.GetSomething

with best regards.
User avatar
Rickard Johansson
Site Admin
Posts: 6575
Joined: 19 Jul 2006 14:29

Re: Powershell variables

Post 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.
Dmitry D.
Posts: 11
Joined: 15 Mar 2011 08:55

Re: Powershell variables

Post by Dmitry D. »

Thank you, Rickard.
I'll try.
whitecrow4
Posts: 1
Joined: 10 Jan 2015 09:31

Re: Powershell variables

Post by whitecrow4 »

Yes! Maybe something like this (not tested...)

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