Location of Colors and Fonts XML

Welcome Forums General PowerShell Q&A Location of Colors and Fonts XML

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
4 years, 8 months ago.

  • Author
    Posts
  • #15227

    Participant
    Points: 0
    Rank: Member

    Hi,
    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.
    Thanks
    Tony

  • #15230

    Member
    Points: 0
    Rank: Member

    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.)

  • #15231

    Participant
    Points: 0
    Rank: Member

    Thanks Dave, just what I was looking for

The topic ‘Location of Colors and Fonts XML’ is closed to new replies.