← 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:
Hi Lennart,
Thanks for getting back so quickly on it. I have tested it once more, (just the above code) and I now get:
-------------------
<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>the brace below (should have 2 spaces in front of it!</p>
     <td>
   </tr>
<?php
                           }
      }
    }
    $foo = "test".bar;
    for ($i=1;$i<5; $i++) {
      if () {
      }
    }
  }
?>
   </table>
    </td>
  </tr>
</table>
-------------------
This has improved, however, there are now 3 tab stops before followed by 3 spaced after the second  "<?php".  Also, the second HTML chunk isn't continuing the indentation level.

The only other problem with the mode is that it's difficult to select
all the text with the mouse.

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