Method to post code snippets on Blogger

Blogspot method used to post code blocks, courtesy of gt-ebuddy at
http://stackoverflow.com/questions/679189/formatting-code-snippets-for-blogging-on-blogger/8697421#8697421 :
<pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; 
                color: #000000; background-color: #eee;
                font-size: 12px; border: 1px dashed #999999;
                line-height: 14px; padding: 5px; 
                overflow: auto; width: 100%">
       <code style="color:#000000;word-wrap:normal;">

            <<<<<<<YOUR CODE HERE>>>>>>>

       </code>
</pre>
Depending on if using compose or HTML window, may need to adjust option of Compose Mode "Show HTML literally" or "Interpret typed HTML".

No comments: