HOWTO: Easily add Powershell code to a WordPress Blog Post using Windows Live Writer

Have you ever wanted to publish Powershell code (or other languages) directly to a WordPress blog such that it automatically is syntax colored and line numbered?  Now you can!  Here’s how:


  • From Live Writer select Insert from the ribbon and choose


  • Copy and paste your powershell code into the window and be sure to select the Code Language as powershell and press OK


  • Publish your blog post and enjoy the nicely formatted Powershell code

Leave a Reply

Your email address will not be published.