Location of Colors and Fonts XML

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Tony Wainwright Tony Wainwright 3 years, 1 month ago.

  • Author
    Posts
  • #15227
    Profile photo of Tony Wainwright
    Tony Wainwright
    Participant

    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
    Profile photo of Dave Wyatt
    Dave Wyatt
    Moderator

    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
    Profile photo of Tony Wainwright
    Tony Wainwright
    Participant

    Thanks Dave, just what I was looking for

You must be logged in to reply to this topic.