In a previous post (https://unlockpowershell.wordpress.com/2010/10/30/copytocolorizedhtmlscript-editor-add-on-for-powergui/), I discussed the add-on that I created for PowerGUI, which I use to copy scripts into colorized HTML. I am now using PowerShell V3, and though you can “break” PowerGUI to work with PowerShell V3 (http://csharpening.net/?p=588), I need my add-ons!
I couldn’t really abandon PowerShell V3, but I can temporarily put aside PowerGUI. I know they will have an updated SDK.dll soon though.
in the mean time, I’ve updated my CopyAsColorizedHTML module to work with PowerGUI, the PowerShell ISE, and the PowerShell console.I’ve posted the updated version on PowerGUI.org: http://powergui.org/entry.jspa?externalID=3021&categoryID=387
If you are running the PowerShell ISE, I’d suggest adding this to your Microsoft.PowerShellISE_profile.ps1 script:
001
|
$psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add(“Copy As Colorized HTML”,{Copy-ColorizedHTML},“Ctrl+Shift+C”) | Out-Null
|
If you are running PowerShell V3, that’s all you need to do, other than add the module to your Modules path – PowerShell V3 will load the module as needed.