Friday, October 03, 2008

Writing code in blogspot

Here is a nice way to write code in blogspot



<pre style="border: 1px dashed rgb(153, 153, 153); padding: 5px; overflow: auto; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; color: rgb(0, 0, 0); background-color: rgb(238, 238, 238); font-size: 12px; line-height: 14px; width: 100%;">


<code>


Some code here


</code>


</pre>




Code will looks like:


Some code here


... or you can use "Copy as html" addin for visula studio. Link is:

http://blogs.microsoft.co.il/blogs/bursteg/archive/2007/11/21/copy-source-as-html-copysourceashtml-for-visual-studio-2008-rtm.aspx

Submit this story to DotNetKicks

2 comments:

pg said...

Thanks! This was helpful.

Wyerarch said...

Thanks - I really appreciate this one, i've always wondered how it was done in blogger!