Home > Uncategorized > Powershell syntax highlighting

Powershell syntax highlighting

Just another small note on posting code snippets. This time for powershell scripts. Gaurhoth solved this problem nicely using his powershell to html syntax highlighting script, Get-SourceAsHTML.ps1. Great stuff. I just added “[Reflection.Assembly]::LoadFile( `’C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.dll’)` | out-null” at the top and it saved my day.

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: