PowerShell: Format-Comments

I’ve been writing a TON of CTP3 advanced functions in the last month, and so far my favorite feature is in-line help.  The ability for me to place proper PowerShell  help files in a script… epic!  Having said that, formatting everything down to 80 char lines… is a pain in the ares.  This morning I had enough and wrote a quick filter to handle it all for me.

~Glenn

3 thoughts on “PowerShell: Format-Comments”

  1. Thanks, yet another case of powershell making something too easy!

    Most snapins launch PowerShell with a console width of 80 characters. Trimming the help ahead of time ensures it’s readable. No matter where my functions are loaded.

    Reply

Leave a Reply