Posh Posting in wordpress

It’s good to see that the help system works anyway.  I found this link to allow me to keep the formatting of my PowerShell code when I add it to my blog.

http://en.support.wordpress.com/code/posting-source-code/

it’s as simple as enclosing your script in some tags as described in the link above

[ code language=”powershell” ]
“your code here”
[ /code ]

(I had to put extra spaces in to avoid wordpress from converting the lines to a code block – you need to remove these before using this in your blog )

Nice!

 

Advertisements

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.