This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Reproduced in build 071115. Copy following code to php file and invoke 'Format'. <body> <?php ?> </body>
Are you guys sure? In JSP we always format scriptlet blocks according to the HTML indent level, so does Ruby...
after 6.0
Vito please evaluate if this issue is still valid in the current implementation
PHP does the same as JSP and Ruby. PHP scriplets are positioned according to the HTML indentation. I'm not sure if that's right thing to do for PHP, but it looks reasonable. I saw in other PHP editors that they never try to re-position an opening PHP tag and format the rest of the scriplet according to the opening tag's position. Eg. the closing tab is at the same column as the opening tag. I'm not sure what conventions we should follow and perhaps we should make this configurable with other formatting options. See issue #132871 about code styles.