Community
Participate
Working Groups
Build Identifier: Version: Helios Service Release 2 Build id: 20110301-1815 Hello! Recently I've made an update to Eclipse. Now the web formatter puts every child HTML element further away to the right. There was no such feature in the older version I was using. This is great, but the formatter does not respect php blocks and formats the whole file as one. But php blocks can contain functions which output html (by ending php block and starting a new one, not by echo). And these blocks do not always appear in file in the order they appear in HTML output. So indentation is completely random. My suggestion is: restart indentation depth on every ?php tag. So it will not start inside the function at some random position from the left. Or remove this depth incrementing totally by an option. Reproducible: Always Steps to Reproduce: 1. Create some document like this: <?php function foo() { ?> <div>Starting something... <?php } ?> <html> <head> <title></title> <?php function foo2() { ?> <div>Starting something 2... <?php } ?> </head> <body> </body> </html> 2. Observe how <html> tag gets indented for no particular reason