Author Posts

May 13, 2014 at 2:26 am

I'm trying to get a list of the default syntax colouring for PowerShell ISE. I'd like to try and match my text editor to the same colour scheme. I would imagine this is stored in an XML file somewhere. Does any one know the location of said file.

May 13, 2014 at 2:47 am

Open the ISE, and type $host.PrivateData.TokenColors in the console window. This is a hashtable of token type names to [System.Windows.Media.Color] objects, which you can read (and even modify, if you want.)

May 13, 2014 at 2:53 am

Thanks Dave, just what I was looking for