nxhtml team mailing list archive
-
nxhtml team
-
Mailing list archive
-
Message #00009
Re: [Question #43320]: Problem with formatting of PHP + HTML
Question #43320 on nXhtml changed:
https://answers.launchpad.net/nxhtml/+question/43320
Status: Answered => Open
Pierre Dumuid is still having a problem:
I am unsure of what you are saying that you don't like about the final
indenting.
* <tr>'s should be at the same depth before and after the <?php
<table>
<tr>
<?php
?>
</tr>
</table>
* indentation for an if statement is:
if (1) {
}
so if there is html in there?
if (1) {
?>
<i>hello</i>
<?php
}
Is there something that you dis-agree with? In general, I think that
indentation is used to show if one has missed out a } or forgot to close
a html tag. Or forgot to add the <tr> before the <td> (i.e. the depth
should match!)
Pierre
--
You received this question notification because you are a member of
nXhtml, which is an answer contact for nXhtml.