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.

Bug 218316 - PHP blocks embedded in HTML should inherit initial indentation
Summary: PHP blocks embedded in HTML should inherit initial indentation
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-13 19:24 UTC by _gt
Modified: 2012-09-13 19:25 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _gt 2012-09-13 19:24:14 UTC
Product Version = NetBeans IDE 7.2 (Build 201207171143)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_07
Runtime = Java HotSpot(TM) Client VM 23.3-b01

When I have HTML like:

...
<div>
	<div>
		<?php echo $div_content; ?>
	</div>
</div>
...

and I run the formatter, it gets changed to

...
<div>
	<div>
<?php echo $div_content; ?>
	</div>
</div>
...

This is in conformance with my settings; I have Initial Indentation for PHP language set to 0. But in this case, when the PHP block is embedded in HTML, I would prefer it to be indented as in the first example so that the block's output starts at the proper indent level.