Correct the WordPress character autocorrect using PowerShell

Posted: October 21, 2014 in PowerShell scripts

When posting code on your wordpress blog, you will quite often find yourself editing your posts 3 seconds after publishing them. You might have noticed like me that WordPress alters certain characters in posted code, which can be really annoying when you post like 300 lines of Powershell code:-)

To get past this problem, I created a script that corrects the characters that has been changed by Wordpress.
Simply copy your edited text into a text file and save it anywhere on your computer. Then run the code under, point to your file when the “open file dialog box” appears. I hope this saves you a bit of frustration, it has for me!

newdl

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