I find myself using PowerShell quite a lot these days and PSPad has come a long way in supporting its quirks over the past 12 months or so - Thanks Jan
I have found a quirk in bracket highlighting. Take the code below which works as expected. If you put the cursor next to either curly brace {} the matching brace is highlighted. $eg = 0 if ($eg -gt 1) [color=#3366FF]{[/color] Write-Host '$eg is greater than 1' [color=#3366FF]}[/color] # end if ($eg -gt 1) Now the exact sane logic here except notice there is no space between the hash (#) symbol (Powershell comment starter) and the last brace (}). $eg = 0 if ($eg -gt 1) { Write-Host '$eg is greater than 1' }# end if ($eg -gt 1) This only seems to happen with the sligle line comment character. It does NOT happen with the block comment characters (<#.....#>). -- <https://forum.pspad.com/read.php?2,78034,78034> PSPad freeware editor https://www.pspad.com