Types/Emoji.Symbol/Emoji.Symbol.format.ps1
Write-FormatView -TypeName Emoji.Symbol -Property Emoji, Name, Hex -AlignProperty @{ Emoji = 'Left' Hex = 'Right' Name = 'Center' } -AutoSize -VirtualProperty @{ Emoji = { $_.Emoji.ToString().PadRight(3) } } -StyleProperty @{ Hex = 'Foreground.Cyan' Name = 'Foreground.Green' } Write-FormatView -TypeName Emoji.Symbol -Property Emoji, Name, PowerShell -AlignProperty @{ Emoji = 'Left' PowerShell = 'Right' Name = 'Center' } -AutoSize -VirtualProperty @{ Emoji = { $_.Emoji.ToString().PadRight(3) } } -StyleProperty @{ Hex = 'Foreground.Cyan' Name = 'Foreground.Green' } -Name PowerShell Write-FormatView -TypeName Emoji.Symbol -Property Emoji -AlignProperty @{ Emoji = 'Left' } -AutoSize -Name Emoji Write-FormatView -TypeName Emoji.Symbol -Property CSS -AlignProperty @{ CSS = 'Left' } -AutoSize -Name CSS Write-FormatView -TypeName Emoji.Symbol -Property Emoji, Name, HTML -AlignProperty @{ Html = 'Left' } -AutoSize -Name Html -StyleProperty @{ Name = 'Foreground.Green' } Write-FormatView -TypeName Emoji.Symbol -Action { Write-FormatViewExpression -ScriptBlock { $_.Emoji.PadRight(4) } Write-FormatViewExpression -Property Name -Style Foreground.Green } Write-FormatView -TypeName Emoji.Symbol -Action { Write-FormatViewExpression -Property Emoji } -Name Emoji Write-FormatView -TypeName Emoji.Symbol -Action { Write-FormatViewExpression -ScriptBlock { $_.Emoji.PadRight(4) } Write-FormatViewExpression -Property PowerShell -Style Foreground.Cyan Write-FormatViewExpression -Property Name -Style Foreground.Green } -Name PowerShell Write-FormatView -TypeName Emoji.Symbol -Action { Write-FormatViewExpression -Text "/*" Write-FormatViewExpression -ScriptBlock { $_.Emoji.PadRight(3) } Write-FormatViewExpression -Text "*/" Write-FormatViewExpression -Newline Write-FormatViewExpression -Property CSS } -Name CSS Write-FormatView -TypeName Emoji.Symbol -Action { Write-FormatViewExpression -Property HTML } -Name HTML |