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

3 comments:

  1. horizon security services Just stumbled across your blog and was instantly amazed with all the useful information that is on it. Great post, just what i was looking for and i am looking forward to reading your other posts soon!

    ReplyDelete
  2. Would love to subscribe to your blog and get these updates in my inbox.

    http://www.wheretobuyphenq.com/

    ReplyDelete
  3. thanks for giving a such a wonderful opportunity of copying code. keep doing more article.
    Hadoop Training in Chennai

    ReplyDelete