← Back to team overview

nxhtml team mailing list archive

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:
Still not quite right. With this example, the first } after the second
<?php has 10 spaces before it, rather than 6.  Also the final } in the
code has 10 spaces before it, and pressing tab and tab at the last "?>"
moves the "?>" in and out.

Pierre

<table>
  <tr>
    <td>
      <table>
	<tr>
	  <td>Hello</td>
	</tr>
	<?php
for ($i=1;$i<5; $i++) {
  if (1) {
    echo "<tr><td>foobar</td></tr>";
  }
  if (1) {
    if (1) {
      if (1) {
        ?>
	<tr>
	  <td>
	    <p>random test.</p>
	  </td>
	</tr>
	<?php
          }
    }
  }
  $foo = "test".bar;
  for ($i=1;$i<5; $i++) {
    if () {
    }
  }
          }
	?>
      </table>
    </td>
  </tr>
</table>

-- 
You received this question notification because you are a member of
nXhtml, which is an answer contact for nXhtml.