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.
Created attachment 101929 [details] sample php file where source has to be formatted When formatting a HTML page in PHP file where PHP includes a condition instruction devided into two seperated PHP sequences, a text line that is not introduced by a HTML tag is continuously shifted on the right. Try Crtl+Shift+F on the this sample : <html> <head> </head> <body> <div> <? if ($a) { ?> <p>line 1 line 2</p> <? } ?> </div> </body> </html>
If I understand correctly, you think that the problem is in <p>line1 line2</p>. I'm correct? But this is not a bug. Actually this is formatted by html formatter and this right. The line2 is inside <p></p> and for this reason is indented with 4 spaces. IMHO the html formatter should format this as <p> line1 line2 </p>
There is no formatting / prettyprinting support for html code => enhancement
*** This bug has been marked as a duplicate of bug 144164 ***