Copy code from visual studio to blogger

If you have a blog and if you are writing posts which contains code(html/css/javascript/c# etc), then you may want to show that code on your blog just like how you see it in visual studio. But if you directly copy & paste your code from visual studio to your blogger, it won't work.

You can use  Visual Studio Productivity Power Tools.  The traditional VS copies the plain text to clipboard. But after installing the above extension copying will place the formatted and colorized HTML fragment on clipboard.

How to install :

Download the extension from the following links

for VS 2010

for VS 2012

download and install the extension.

After installing, restart the Visual Studio then copy the code and paste it in blogger. That's it.  It's working fine..

Happy Blogging..  :-)

1 comment:

  1. Hi Admin,
    Excellent blog and its totally loaded with valid posts on Java and .Net technology. Consider including RSS feed in your blog, so aspirants like me can follow your blog easily. Dot Net Training