View Single Post
Old 06-11-2009, 11:02 AM   #12 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

php Code:
if($a == $b)
{
<spacer>
     // Comments are indented aswell
     $c = $a;
<spacer>
}

javascript Code:
if(a == b) {
<spacer>
      // Comments are indented aswell
      var c = a;
<spacer>
}

css Code:
div#container {
     color: blue;
     background-color: red;
     margin: 3px 0 0 3px;
}
Or if it's short
css Code:
div#container { color: blue; }
__________________
Tanax is offline  
Reply With Quote