How to : Formatting code snippets for blogging on Blogger

back to HOME          
How to list your code in blog :
most useful link I found so far is here http://stackoverflow.com/questions/679189/formatting-code-snippets-for-blogging-on-blogger . I personally use advice (from link above) posted by gt_ebuddy and alocaly :


gt_ebuddy:



How to use :
  1. Paste this snippet in text editor,
  2. paste your code in <<<<<<>>>>>> block.
  3. Copy all and
  4. paste to HTML view in blogger(or any other) post editor.
BENEFITS : Simple and easy to use, less configuration, easy to reconfigure, no extra software

<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>
alocalyhttp://formatmysourcecode.blogspot.com/

No comments: