First, if you haven’t installed Sublime Text, I would suggest you go here and do that now. It’s a great text editor, with all manner of excellent features. However, it does not ship with PowerShell syntax highlighting by default. To add it, do the following:
- Download the ZIP from here: https://github.com/SublimeText/PowerShell
- Extract the zip into the “Packages” folder where SublimeText is installed:
Sublime Text 2/Packages
$ ls -al | grep PowerShell
drwxr-xr-x 12 user 1604020879 408 Sep 29 15:52 PowerShell
- Restart SublimeText
Note: Don’t run the get-vm removeVM part.. it’ll end badly.