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 2010http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef/

for VS 2012http://visualstudiogallery.msdn.microsoft.com/3a96a4dc-ba9c-4589-92c5-640e07332afd

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..  :-)

No comments:

Post a Comment