When i am give some code snippets its not a good way to read for readers.And when i go to see some other blogs they are given the code in very easily and neat way.Today i got the solution,am sharing the same with you all.
Steps to follow
Step 1 : Get the Addins from here
Step 2 :Extract it to your Visual studio Addins folder(C:\Users\anishmarokey\Documents\Visual Studio 2008\Addins) ,if the Addins folder is not there create it.
Step 3 : Open visual studio,click in Tools -> Add-in Manager
Step 4 :Add-in Manager a message box will come.Checked the check box for "Copy as HTML" and click ok.
Step 5 :Now you can select any code and when rigth click "Copy As HTML" as shown
Step 6 : Paste in your blog.It looks like as shown below
6 static void Main(string args)