I use GeSHi to highlight code snippets on my webpage. Unfortunately GeSHi didn't already support PowerShell highlighting, and the only one I could find didn't match the PowerGUI colors that I've become used to. Hence I sat down and made my own language file to work with PowerShell.
I've tried to stay as true to the PowerGUI colors as possible, but I couldn't get everything to match 100%. It's still pretty close though, and I'm quite happy with it (for now). If you have any comments or suggestions, please let me know.
You can download the language file below.
# Find all .ps1 scripts $files = Get-ChildItem | where { $_ -like "*.ps1" } # for loop for($count = 0; $count -lt 10; $c++) { "Hello world!" $empty = 6 + 3 $empty-- }




