PowerGUI's editor is nice and lightweight. I wasn't crazy about the colors in the syntax highlighting.
Luckily, this can be customized. Not with a GUI, but at least in the configuration XML - PowerShellSyntax.xml. I replaced the Styles section with the following:
<Styles>
<Style Key="ReservedWordStyle" ForeColor="Blue" Bold="True" />
<Style Key="OperatorStyle" ForeColor="Red" />
<Style Key="OperatorWordStyle" ForeColor="Red" />
<Style Key="VariableStyle" ForeColor="Purple" />
<Style Key="CmdletStyle" ForeColor="Black" Bold="True" />
<Style Key="NetClassStaticStyle" ForeColor="teal" />
<Style Key="NetClassStaticMethodStyle" ForeColor="saddlebrown" />
<Style Key="CmdletParamStyle" Italic="True" ForeColor="Black" />
<Style Key="NumberStyle" ForeColor="Black" />
<Style Key="StringDelimiterStyle" ForeColor="Green" />
<Style Key="StringDefaultStyle" ForeColor="Green" Bold="True" />
<Style Key="CommentDelimiterStyle" ForeColor="Maroon" />
<Style Key="CommentDefaultStyle" ForeColor="Maroon" />
<Style Key="AutoVars" ForeColor="Navy" />
</Styles>
A Sample Render looks like:
#########################################################################
# Some sample code
$strComputer = "."
$colItems = get-wmiobject -class "Win32_LoadOrderGroup" -namespace "root\CIMV2" `
-computername $strComputer
foreach
($objItem in $colItems)
{
write-host "DriverEnabled: " $objItem.DriverEnabled
write-host "GroupOrder: " $objItem.GroupOrder
write-host "Name: " $objItem.Name write-host
}
I'm sure I'll tweak it, but I'm already happier using the product.