I'm using PowerShell ISE and I'm struggling to change the color of the keyword region. When I go to Tools > Options > Colors and Fonts, I don't see an option to modify the region color which defaults to black. This makes it hard to see against a darker script pane. I've also tried editing the .xml theme and adding `TokenColorsRegion`, but ISE doesn't recognize that. Is there any known hack or workaround to change the color of the region?
2 Answers
Don't stress too much about using ISE; I feel like it’s stuck in time compared to VS Code. That said, PowerShell handles its own syntax highlighting through the syntax tree, so `#region` will always be treated like a comment, which makes it green when expanded. Unfortunately, it seems there's not an easy way around the color limitations in ISE for the regions.
Honestly, I feel your pain. I know you can change the region color when it’s expanded to something other than green, but once it’s collapsed, it always shows up black. It's super annoying!

Yeah, that makes sense! I just wish there were easier ways to customize it. Thanks for the clarification!