anandj123′s Blog

February 24, 2009

How to post C# code in wordpress

Filed under: Initial setup — anandj123 @ 9:50 pm

This is a code is generated using c# code format at manoli.net But wordpress does not allow to include the necessary CSS files to be included in the header. For that you need to pay 4 cents a day. So i created a image file out of it (using paint) and published it. This is the most inefficient way of publishing code. I did this to see the results. Looks great!! Hope i don’t need to do this in future.

Publishing C# code by copying pasting directly from Visual studio into w.blogger

Filed under: Initial setup — anandj123 @ 4:37 pm

Hello here is some code using w.blogger. I really liked the way it works, no need to store the posts locally you can retrieve published posts and edit them and re-publish them. It’s cool!. My only concern is when i copy paste code from visual studio it removes the indentation. catch (Exception ex) { throw new Exception (“An unexpected error occurred while creating the reject message.”, ex); } finally { reject = null; header = null; reject = null; header = null; senderCompID = null; targetCompID = null; doc = null; }

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.