Hi there.. I was just wondering what type of indentation people use when you get into both html AND php indenting mixed.. how do you guys handle something like this..
<table>
<?
if ($title) //if there is a title display it on it's own line
{
?>
<tr>
<td><div class="headertext"><?=$title?></div></td>
</tr>
<?
}
?>
<tr>
<td>Hello!</td>
</tr>
</table>
Do you do something like this? I mean, sure, that makes the PHP nice and clean, but when you get into really big tables and/or a lot of conditionals, you are sacrificing clean HTML code in order to do that.
So I guess I'm saying.. what do you guys do?