Monday, August 26, 2013

How to embed Java code in Blogspot ?

This blog explains about how to embed Java related code in Blogspot ?

Open your blogspot in HTML mode , by clicking on HTML button, keep Java code as shown below within <pre> element as shown below.



<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;
class="brush: java;
                overflow: auto; width: 100%">
       <code style="color:#000000;word-wrap:normal;">

  // Write here your Java code 
       </code>
 </pre>


Example , How it looks like - http://fortunefusionminds.blogspot.com/

No comments:

Post a Comment