So I’ve been looking for something like this for a long time but apparently just not hard enough.  I finally found this blog that had exactly what I’ve been looking for. The original blog is here.

http://www.jonathanmedd.net/2013/03/writing-powershell-code-on-os-x-using-sublime.html

Basically, this will give you a text editor to highlight the syntax of powershell for editing powershell scripts on the Mac.  Most of the time you will have to have a windows machine to do the testing of the script, but it’s nice to have something like this when it’s needed.

First, download Sublime from here: download

Next, download the Zip package (button in the bottom right corner of the page) from here https://github.com/SublimeText/PowerShell

Then, copy the entire powershell folder into the directory here: Users\Username\Library\Application Support\Sublime Text 2\Packages.  The original poster noted that you can just open sublime and navigate to the menus Sublime – Preferences – Browse Packages to open this location.

Once that’s copied in there, just quit and reopen Sublime and then you can navigate to the View menu – Syntax – Powershell v2 and it will highlight the code properly.

I hope this helps anyone else out there that had been looking for this.