PowerShell: Colorizing PowerShell ISE v3

The new PowerShell ISE script editor in PowerShell v3 lets you customize a lot of colors, so if a particular color does not show well on a projector, for example, simply change it. You can do that via GUI, but you can also do it programmatically. For example, from your profile script:

$psISE.Options.RestoreDefaultConsoleTokenColors
$psISE.Options.RestoreDefaultTokenColors
$psISE.Options.RestoreDefaultXmlTokenColors
$psISE.Options.ConsolePaneBackgroundColor
$psISE.Options.ConsolePaneForegroundColor
$psISE.Options.ConsolePaneTextBackgroundColor
$psISE.Options.ConsoleTokenColors
$psISE.Options.DebugBackgroundColor
$psISE.Options.DebugForegroundColor
$psISE.Options.ErrorBackgroundColor
$psISE.Options.ErrorForegroundColor
$psISE.Options.ScriptPaneBackgroundColor
$psISE.Options.ScriptPaneForegroundColor
$psISE.Options.TokenColors
$psISE.Options.VerboseBackgroundColor
$psISE.Options.VerboseForegroundColor
$psISE.Options.WarningBackgroundColor
$psISE.Options.WarningForegroundColor
$psISE.Options.XmlTokenColors
No comments yet.

Leave a Reply

revia in alcoholism