Displaying a block of code in blogger
If you want to display a snippet of code within blogger, then this post is very useful. Basically, paste the following code near the blockquote code in the template.
Now just place the code you want to display inside the following:
code {
font-family: Courier;
margin:.75em 0;
border:1px solid #596;
border-width:1px 1px;
padding:5px 15px;
display: block;
background-color: #dedede;
white-space: pre;
}
Now just place the code you want to display inside the following:
<code></code>
Comments