Tuesday, December 14, 2010

How to put code into blog?

How to put code into blog?
Use <PRE> tag. Sample here:

myClassPath=".;"
for i in `ls ./lib/*`; do
   case $environment in
        FIX) myClassPath="$myClassPath"":$i"
             ;;
          *) myClassPath="$myClassPath"";$i"
             ;;
   esac
done
Table examples
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
     <td width="60%" align="left" valign="top">TestMe</td>
     <td width="40%" align="right" valign="top">&#160;</td>
  </tr>
  <tr colspan="2">
     <td>COLSPAN</td>
  </tr>
</table>

Scroll Box Sample

<div style="border: 1px solid rgb(170, 170, 170); overflow: auto; width: 350px; height: 100px; color: rgb(0, 0, 0);"><p>
your html code here.
</p>
</div>

No comments: