Skip to content

Instantly share code, notes, and snippets.

@syntax-tm
Last active April 18, 2024 22:04
Show Gist options
  • Save syntax-tm/d53c20fad9203662c655e54c9c730b6c to your computer and use it in GitHub Desktop.
Save syntax-tm/d53c20fad9203662c655e54c9c730b6c to your computer and use it in GitHub Desktop.
$PSStyle in Windows PowerShell

Adding $PSStyle to Windows PowerShell

PSStyle Preview

Usage

  1. Copy the code from PSStyle
  2. Paste the copied code at the top of your script or in your console

That's it! You can then use $PSStyle exactly the same as you would in PowerShell Core.

Note

If you want to display the formatted list when running $PSStyle (like this), you will also need to import the type data.

PSStyle

Adds $PSStyle (and optionally its custom type data) for use in Windows PowerShell (powershell.exe).

$sourceUri = 'https://gist.github.com/syntax-tm/d53c20fad9203662c655e54c9c730b6c/raw/Style.ps1'
$content = (Invoke-WebRequest -Uri $sourceUri -UseBasicParsing).Content
. { Invoke-Expression $content }

An alternate one line version of the above script.

. { iex (iwr 'https://gist.github.com/syntax-tm/d53c20fad9203662c655e54c9c730b6c/raw/Style.ps1' -UseBasicParsing).Content }

Type Data

This is only needed if you wanted Windows PowerShell to display the same formatted list that you see in PowerShell Core.

$tempFile = Join-Path $env:TEMP 'Styles.format.ps1xml'
(Invoke-WebRequest 'https://gist.github.com/syntax-tm/d53c20fad9203662c655e54c9c730b6c/raw/Styles.format.ps1xml' -UseBasicParsing).Content | Out-File $tempFile
Update-FormatData -AppendPath $tempFile
Remove-Item $tempFile

An alternative one line version of the previous script.

(iwr 'https://gist.github.com/syntax-tm/d53c20fad9203662c655e54c9c730b6c/raw/Styles.format.ps1xml' -UseBasicParsing).Content | Out-File "$env:TEMP\PSStyle.format.ps1xml"; Update-FormatData -AppendPath "$env:TEMP\PSStyle.format.ps1xml"; del "$env:TEMP\PSStyle.format.ps1xml"
if ($null -ne $PSStyle) { return }
if ($host.Name -like '*ISE*') { return }
class ForegroundStyle
{
[string]$Black = "$([char]0x1b)[30m"
[string]$Red = "$([char]0x1b)[31m"
[string]$Green = "$([char]0x1b)[32m"
[string]$Yellow = "$([char]0x1b)[33m"
[string]$Blue = "$([char]0x1b)[34m"
[string]$Magenta = "$([char]0x1b)[35m"
[string]$Cyan = "$([char]0x1b)[36m"
[string]$White = "$([char]0x1b)[37m"
[string]$BrightBlack = "$([char]0x1b)[90m"
[string]$BrightRed = "$([char]0x1b)[91m"
[string]$BrightGreen = "$([char]0x1b)[92m"
[string]$BrightYellow = "$([char]0x1b)[93m"
[string]$BrightBlue = "$([char]0x1b)[94m"
[string]$BrightMagenta = "$([char]0x1b)[95m"
[string]$BrightCyan = "$([char]0x1b)[96m"
[string]$BrightWhite = "$([char]0x1b)[97m"
hidden [string]$Reset = "$([char]0x1b)[0m"
[string] ToString()
{
$sb = [System.Text.StringBuilder]::new()
$sb.AppendFormat("Black : {0}{1}{2}`n", $this.Black, $this.Black.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Red : {0}{1}{2}`n", $this.Red, $this.Red.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Green : {0}{1}{2}`n", $this.Green, $this.Green.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Yellow : {0}{1}{2}`n", $this.Yellow, $this.Yellow.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Blue : {0}{1}{2}`n", $this.Blue, $this.Blue.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Magenta : {0}{1}{2}`n", $this.Magenta, $this.Magenta.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Cyan : {0}{1}{2}`n", $this.Cyan, $this.Cyan.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("White : {0}{1}{2}`n", $this.White, $this.White.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightBlack : {0}{1}{2}`n", $this.BrightBlack, $this.BrightBlack.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightRed : {0}{1}{2}`n", $this.BrightRed, $this.BrightRed.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightGreen : {0}{1}{2}`n", $this.BrightGreen, $this.BrightGreen.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightYellow : {0}{1}{2}`n", $this.BrightYellow, $this.BrightYellow.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightBlue : {0}{1}{2}`n", $this.BrightBlue, $this.BrightBlue.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightMagenta : {0}{1}{2}`n", $this.BrightMagenta, $this.BrightMagenta.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightCyan : {0}{1}{2}`n", $this.BrightCyan, $this.BrightCyan.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightWhite : {0}{1}{2}", $this.BrightWhite, $this.BrightWhite.Replace("$([char]0x1b)", '`e'), $this.Reset)
return $sb.ToString()
}
}
class BackgroundStyle
{
[string]$Black = "$([char]0x1b)[40m"
[string]$Red = "$([char]0x1b)[41m"
[string]$Green = "$([char]0x1b)[42m"
[string]$Yellow = "$([char]0x1b)[43m"
[string]$Blue = "$([char]0x1b)[44m"
[string]$Magenta = "$([char]0x1b)[45m"
[string]$Cyan = "$([char]0x1b)[46m"
[string]$White = "$([char]0x1b)[47m"
[string]$BrightBlack = "$([char]0x1b)[100m"
[string]$BrightRed = "$([char]0x1b)[101m"
[string]$BrightGreen = "$([char]0x1b)[102m"
[string]$BrightYellow = "$([char]0x1b)[103m"
[string]$BrightBlue = "$([char]0x1b)[104m"
[string]$BrightMagenta = "$([char]0x1b)[105m"
[string]$BrightCyan = "$([char]0x1b)[106m"
[string]$BrightWhite = "$([char]0x1b)[107m"
hidden [string]$Reset = "$([char]0x1b)[0m"
[string] ToString()
{
$sb = [System.Text.StringBuilder]::new()
$sb.AppendFormat("Black : {0}{1}{2}`n", $this.Black, $this.Black.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Red : {0}{1}{2}`n", $this.Red, $this.Red.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Green : {0}{1}{2}`n", $this.Green, $this.Green.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Yellow : {0}{1}{2}`n", $this.Yellow, $this.Yellow.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Blue : {0}{1}{2}`n", $this.Blue, $this.Blue.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Magenta : {0}{1}{2}`n", $this.Magenta, $this.Magenta.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Cyan : {0}{1}{2}`n", $this.Cyan, $this.Cyan.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("White : {0}{1}{2}`n", $this.White, $this.White.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightBlack : {0}{1}{2}`n", $this.BrightBlack, $this.BrightBlack.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightRed : {0}{1}{2}`n", $this.BrightRed, $this.BrightRed.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightGreen : {0}{1}{2}`n", $this.BrightGreen, $this.BrightGreen.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightYellow : {0}{1}{2}`n", $this.BrightYellow, $this.BrightYellow.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightBlue : {0}{1}{2}`n", $this.BrightBlue, $this.BrightBlue.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightMagenta : {0}{1}{2}`n", $this.BrightMagenta, $this.BrightMagenta.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightCyan : {0}{1}{2}`n", $this.BrightCyan, $this.BrightCyan.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("BrightWhite : {0}{1}{2}", $this.BrightWhite, $this.BrightWhite.Replace("$([char]0x1b)", '`e'), $this.Reset)
return $sb.ToString()
}
}
class PSFormattingStyle
{
[string]$FormatAccent = "$([char]0x1b)[32;1m"
[string]$TableHeader = "$([char]0x1b)[32;1m"
[string]$ErrorAccent = "$([char]0x1b)[36;1m"
[string]$Error = "$([char]0x1b)[31;1m"
[string]$Warning = "$([char]0x1b)[33;1m"
[string]$Verbose = "$([char]0x1b)[33;1m"
[string]$Debug = "$([char]0x1b)[33;1m"
hidden [string]$Reset = "$([char]0x1b)[0m"
[string] ToString()
{
$sb = [System.Text.StringBuilder]::new()
$sb.AppendFormat("FormatAccent : {0}{1}{2} `n", $this.FormatAccent, $this.FormatAccent.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("TableHeader : {0}{1}{2} `n", $this.TableHeader, $this.TableHeader.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("ErrorAccent : {0}{1}{2} `n", $this.ErrorAccent, $this.ErrorAccent.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Error : {0}{1}{2} `n", $this.Error, $this.Error.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Warning : {0}{1}{2} `n", $this.Warning, $this.Warning.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Verbose : {0}{1}{2} `n", $this.Verbose, $this.Verbose.Replace("$([char]0x1b)", '`e'), $this.Reset)
$sb.AppendFormat("Debug : {0}{1}{2}", $this.Debug, $this.Debug.Replace("$([char]0x1b)", '`e'), $this.Reset)
return $sb.ToString()
}
}
class PSProgressStyle
{
[string]$ProgressStyle = "$([char]0x1b)[33;1m"
[int]$MaxWidth = 120
[int]$View = 0
[bool]$UseOSCIndicator = $false
}
class PSStyleFileInfo
{
[string]$Directory = "$([char]0x1b)[44;1m"
[string]$SymbolicLink = "$([char]0x1b)[36;1m"
[string]$Executable = "$([char]0x1b)[32;1m"
[string[]]$Extensions = @(
".zip",
".tgz",
".gz",
".tar",
".nupkg",
".cab",
".7z",
".ps1",
".psd1",
".psm1",
".ps1xml"
)
}
class PSStyle
{
hidden [int]$OutputRendering = 0
$Formatting = [PSFormattingStyle]::new()
$Progress = [PSProgressStyle]::new()
$Background = [BackgroundStyle]::new()
$Foreground = [ForegroundStyle]::new()
hidden [PSStyleFileInfo]$FileInfo = [PSStyleFileInfo]::new()
[string]$Blink = "$([char]0x1b)[5m"
[string]$BlinkOff = "$([char]0x1b)[25m"
[string]$Bold = "$([char]0x1b)[1m"
[string]$BoldOff = "$([char]0x1b)[22m"
[string]$Hidden = "$([char]0x1b)[8m"
[string]$HiddenOff = "$([char]0x1b)[28m"
[string]$Reverse = "$([char]0x1b)[7m"
[string]$ReverseOff = "$([char]0x1b)[27m"
[string]$Italic = "$([char]0x1b)[3m"
[string]$ItalicOff = "$([char]0x1b)[23m"
[string]$Underline = "$([char]0x1b)[4m"
[string]$UnderlineOff = "$([char]0x1b)[24m"
[string]$Strikethrough = "$([char]0x1b)[9m"
[string]$StrikethroughOff = "$([char]0x1b)[29m"
[string]$Reset = "$([char]0x1b)[0m"
[string] ToString()
{
$sb = [System.Text.StringBuilder]::new()
$sb.AppendLine("Background`n----------")
$sb.AppendLine($this.Background)
$sb.AppendLine("Foreground`n----------")
$sb.AppendLine($this.Foreground)
$sb.AppendLine("Formatting`n----------")
$sb.AppendLine($this.Formatting)
$sb.AppendLine("Styles`n------")
$sb.AppendFormat("Blink : {0}{1}{2} `n", $this.Blink, $this.Blink.Replace("$([char]0x1b)", '`e'), $this.BlinkOff)
$sb.AppendFormat("Bold : {0}{1}{2} `n", $this.Bold, $this.Bold.Replace("$([char]0x1b)", '`e'), $this.BoldOff)
$sb.AppendFormat("Hidden : {0}{1}{2} `n", $this.Hidden, $this.Hidden.Replace("$([char]0x1b)", '`e'), $this.HiddenOff)
$sb.AppendFormat("Reverse : {0}{1}{2} `n", $this.Reverse, $this.Reverse.Replace("$([char]0x1b)", '`e'), $this.ReverseOff)
$sb.AppendFormat("Italic : {0}{1}{2} `n", $this.Italic, $this.Italic.Replace("$([char]0x1b)", '`e'), $this.ItalicOff)
$sb.AppendFormat("Underline : {0}{1}{2} `n", $this.Underline, $this.Underline.Replace("$([char]0x1b)", '`e'), $this.UnderlineOff)
$sb.AppendFormat("Strikethrough : {0}{1}{2}", $this.Strikethrough, $this.Strikethrough.Replace("$([char]0x1b)", '`e'), $this.StrikethroughOff)
return $sb.ToString()
}
}
$PSStyle = [PSStyle]::new()
Set-Variable -Name PSStyle -Option AllScope -Description "Configuration controlling how text is rendered."
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
<ViewDefinitions>
<View>
<Name>PSStyleFileInfo</Name>
<ViewSelectedBy>
<TypeName>PSStyleFileInfo</TypeName>
</ViewSelectedBy>
<ListControl>
<ListEntries>
<ListEntry>
<ListItems>
<!-- FileInfo -->
<ListItem>
<Label>FileInfo.Directory</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.FileInfo.Directory, $PSStyle.FileInfo.Directory.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>FileInfo.SymbolicLink</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.FileInfo.SymbolicLink, $PSStyle.FileInfo.SymbolicLink.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>FileInfo.Executable</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.FileInfo.Executable, $PSStyle.FileInfo.Executable.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>FileInfo.Extension</Label>
<ScriptBlock>[string]::Join('$($PSStyle.Foreground.Black),$($PSStyle.Reset)', $PSStyle.FileInfo.Extension)</ScriptBlock>
</ListItem>
</ListItems>
</ListEntry>
</ListEntries>
</ListControl>
</View>
<View>
<Name>PSProgressStyle</Name>
<ViewSelectedBy>
<TypeName>PSProgressStyle</TypeName>
</ViewSelectedBy>
<ListControl>
<ListEntries>
<ListEntry>
<ListItems>
<!-- Progress -->
<ListItem>
<Label>Progress.Style</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Progress.Style, $PSStyle.Progress.Style.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Progress.MaxWidth</Label>
<ScriptBlock>$PSStyle.Progress.MaxWidth</ScriptBlock>
</ListItem>
<ListItem>
<Label>Progress.View</Label>
<ScriptBlock>$PSStyle.Progress.View</ScriptBlock>
</ListItem>
<ListItem>
<Label>Progress.UseOSCIndicator</Label>
<ScriptBlock>$PSStyle.Progress.UseOSCIndicator</ScriptBlock>
</ListItem>
</ListItems>
</ListEntry>
</ListEntries>
</ListControl>
</View>
<View>
<Name>PSFormattingStyle</Name>
<ViewSelectedBy>
<TypeName>PSFormattingStyle</TypeName>
</ViewSelectedBy>
<ListControl>
<ListEntries>
<ListEntry>
<ListItems>
<!-- Formatting -->
<ListItem>
<Label>Formatting.FormatAccent</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Formatting.FormatAccent, $PSStyle.Formatting.FormatAccent.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Formatting.TableHeader</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Formatting.TableHeader, $PSStyle.Formatting.TableHeader.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Formatting.ErrorAccent</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Formatting.ErrorAccent, $PSStyle.Formatting.ErrorAccent.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Formatting.Error</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Formatting.Error, $PSStyle.Formatting.Error.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Formatting.Warning</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Formatting.Warning, $PSStyle.Formatting.Warning.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Formatting.Verbose</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Formatting.Verbose, $PSStyle.Formatting.Verbose.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Formatting.Debug</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Formatting.Debug, $PSStyle.Formatting.Debug.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
</ListItems>
</ListEntry>
</ListEntries>
</ListControl>
</View>
<View>
<Name>ForegroundStyle</Name>
<ViewSelectedBy>
<TypeName>ForegroundStyle</TypeName>
</ViewSelectedBy>
<ListControl>
<ListEntries>
<ListEntry>
<ListItems>
<!-- Foreground -->
<ListItem>
<Label>Foreground.Black</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.Black, $PSStyle.Foreground.Black.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightBlack</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightBlack, $PSStyle.Foreground.BrightBlack.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.White</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.White, $PSStyle.Foreground.White.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightWhite</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightWhite, $PSStyle.Foreground.BrightWhite.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.Red</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.Red, $PSStyle.Foreground.Red.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightRed</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightRed, $PSStyle.Foreground.BrightRed.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.Magenta</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.Magenta, $PSStyle.Foreground.Magenta.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightMagenta</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightMagenta, $PSStyle.Foreground.BrightMagenta.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.Blue</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.Blue, $PSStyle.Foreground.Blue.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightBlue</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightBlue, $PSStyle.Foreground.BrightBlue.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.Cyan</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.Cyan, $PSStyle.Foreground.Cyan.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightCyan</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightCyan, $PSStyle.Foreground.BrightCyan.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.Green</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.Green, $PSStyle.Foreground.Green.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightGreen</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightGreen, $PSStyle.Foreground.BrightGreen.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.Yellow</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.Yellow, $PSStyle.Foreground.Yellow.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightYellow</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightYellow, $PSStyle.Foreground.BrightYellow.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
</ListItems>
</ListEntry>
</ListEntries>
</ListControl>
</View>
<View>
<Name>BackgroundStyle</Name>
<ViewSelectedBy>
<TypeName>BackgroundStyle</TypeName>
</ViewSelectedBy>
<ListControl>
<ListEntries>
<ListEntry>
<ListItems>
<!-- Background -->
<ListItem>
<Label>Background.Black</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.Black, $PSStyle.Background.Black.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightBlack</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightBlack, $PSStyle.Background.BrightBlack.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.White</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.White, $PSStyle.Background.White.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightWhite</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightWhite, $PSStyle.Background.BrightWhite.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.Red</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.Red, $PSStyle.Background.Red.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightRed</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightRed, $PSStyle.Background.BrightRed.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.Magenta</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.Magenta, $PSStyle.Background.Magenta.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightMagenta</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightMagenta, $PSStyle.Background.BrightMagenta.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.Blue</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.Blue, $PSStyle.Background.Blue.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightBlue</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightBlue, $PSStyle.Background.BrightBlue.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.Cyan</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.Cyan, $PSStyle.Background.Cyan.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightCyan</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightCyan, $PSStyle.Background.BrightCyan.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.Green</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.Green, $PSStyle.Background.Green.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightGreen</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightGreen, $PSStyle.Background.BrightGreen.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.Yellow</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.Yellow, $PSStyle.Background.Yellow.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightYellow</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightYellow, $PSStyle.Background.BrightYellow.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
</ListItems>
</ListEntry>
</ListEntries>
</ListControl>
</View>
<View>
<Name>PSStyle</Name>
<ViewSelectedBy>
<TypeName>PSStyle</TypeName>
</ViewSelectedBy>
<ListControl>
<ListEntries>
<ListEntry>
<ListItems>
<ListItem>
<Label>Reset</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Reset, $PSStyle.Reset.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>BlinkOff</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.BlinkOff, $PSStyle.BlinkOff.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Blink</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Blink, $PSStyle.Blink.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>BoldOff</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.BoldOff, $PSStyle.BoldOff.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Bold</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Bold, $PSStyle.Bold.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Hidden</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Hidden, $PSStyle.Hidden.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>HiddenOff</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.HiddenOff, $PSStyle.HiddenOff.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Reverse</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Reverse, $PSStyle.Reverse.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>ReverseOff</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.ReverseOff, $PSStyle.ReverseOff.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>ItalicOff</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.ItalicOff, $PSStyle.ItalicOff.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Italic</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Italic, $PSStyle.Italic.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>UnderlineOff</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.UnderlineOff, $PSStyle.UnderlineOff.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Underline</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Underline, $PSStyle.Underline.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>StrikethroughOff</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.StrikethroughOff, $PSStyle.StrikethroughOff.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Strikethrough</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Strikethrough, $PSStyle.Strikethrough.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<!-- OutputRendering -->
<!-- [System.Management.Automation.OutputRendering] type does not exist in Windows PowerShell
as it was added to the PowerShell SDK in 7.2.0 -->
<!--<ListItem>
<PropertyName>OutputRendering</PropertyName>
</ListItem>-->
<!-- Formatting -->
<ListItem>
<Label>Formatting.FormatAccent</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Formatting.FormatAccent, $PSStyle.Formatting.FormatAccent.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Formatting.TableHeader</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Formatting.TableHeader, $PSStyle.Formatting.TableHeader.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Formatting.ErrorAccent</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Formatting.ErrorAccent, $PSStyle.Formatting.ErrorAccent.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Formatting.Error</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Formatting.Error, $PSStyle.Formatting.Error.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Formatting.Warning</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Formatting.Warning, $PSStyle.Formatting.Warning.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Formatting.Verbose</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Formatting.Verbose, $PSStyle.Formatting.Verbose.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Formatting.Debug</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Formatting.Debug, $PSStyle.Formatting.Debug.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<!-- Progress -->
<ListItem>
<Label>Progress.Style</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Progress.Style, $PSStyle.Progress.Style.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Progress.MaxWidth</Label>
<ScriptBlock>$PSStyle.Progress.MaxWidth</ScriptBlock>
</ListItem>
<ListItem>
<Label>Progress.View</Label>
<ScriptBlock>$PSStyle.Progress.View</ScriptBlock>
</ListItem>
<ListItem>
<Label>Progress.UseOSCIndicator</Label>
<ScriptBlock>$PSStyle.Progress.UseOSCIndicator</ScriptBlock>
</ListItem>
<!-- FileInfo -->
<ListItem>
<Label>FileInfo.Directory</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.FileInfo.Directory, $PSStyle.FileInfo.Directory.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>FileInfo.SymbolicLink</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.FileInfo.SymbolicLink, $PSStyle.FileInfo.SymbolicLink.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>FileInfo.Executable</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.FileInfo.Executable, $PSStyle.FileInfo.Executable.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>FileInfo.Extension</Label>
<ScriptBlock>[string]::Join('$($PSStyle.Foreground.Black),$($PSStyle.Reset)', $PSStyle.FileInfo.Extension)</ScriptBlock>
</ListItem>
<!-- Foreground -->
<ListItem>
<Label>Foreground.Black</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.Black, $PSStyle.Foreground.Black.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightBlack</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightBlack, $PSStyle.Foreground.BrightBlack.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.White</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.White, $PSStyle.Foreground.White.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightWhite</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightWhite, $PSStyle.Foreground.BrightWhite.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.Red</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.Red, $PSStyle.Foreground.Red.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightRed</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightRed, $PSStyle.Foreground.BrightRed.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.Magenta</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.Magenta, $PSStyle.Foreground.Magenta.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightMagenta</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightMagenta, $PSStyle.Foreground.BrightMagenta.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.Blue</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.Blue, $PSStyle.Foreground.Blue.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightBlue</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightBlue, $PSStyle.Foreground.BrightBlue.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.Cyan</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.Cyan, $PSStyle.Foreground.Cyan.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightCyan</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightCyan, $PSStyle.Foreground.BrightCyan.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.Green</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.Green, $PSStyle.Foreground.Green.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightGreen</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightGreen, $PSStyle.Foreground.BrightGreen.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.Yellow</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.Yellow, $PSStyle.Foreground.Yellow.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Foreground.BrightYellow</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Foreground.BrightYellow, $PSStyle.Foreground.BrightYellow.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<!-- Background -->
<ListItem>
<Label>Background.Black</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.Black, $PSStyle.Background.Black.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightBlack</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightBlack, $PSStyle.Background.BrightBlack.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.White</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.White, $PSStyle.Background.White.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightWhite</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightWhite, $PSStyle.Background.BrightWhite.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.Red</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.Red, $PSStyle.Background.Red.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightRed</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightRed, $PSStyle.Background.BrightRed.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.Magenta</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.Magenta, $PSStyle.Background.Magenta.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightMagenta</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightMagenta, $PSStyle.Background.BrightMagenta.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.Blue</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.Blue, $PSStyle.Background.Blue.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightBlue</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightBlue, $PSStyle.Background.BrightBlue.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.Cyan</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.Cyan, $PSStyle.Background.Cyan.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightCyan</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightCyan, $PSStyle.Background.BrightCyan.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.Green</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.Green, $PSStyle.Background.Green.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightGreen</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightGreen, $PSStyle.Background.BrightGreen.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.Yellow</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.Yellow, $PSStyle.Background.Yellow.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
<ListItem>
<Label>Background.BrightYellow</Label>
<ScriptBlock>[string]::Format("{0}{1}{2}", $PSStyle.Background.BrightYellow, $PSStyle.Background.BrightYellow.Replace("$([char]0x1b)",'`e'), $PSStyle.Reset)</ScriptBlock>
</ListItem>
</ListItems>
</ListEntry>
</ListEntries>
</ListControl>
</View>
</ViewDefinitions>
</Configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment