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 270086

Summary: Reformat Issues in PHP+HTML Files
Product: php Reporter: gianluca.ferrantelli
Component: EditorAssignee: issues@php <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description gianluca.ferrantelli 2017-03-16 09:31:35 UTC
Every time I have a file with PHP and HTML together ( as for  Zend Framework Template ), the "reformat" cannot be used, because NB is not able to do this in the right way; for example, if I have a list of "<li>", when I edit the <?=$phpcode?> inside, the EDITOR brokes the indentation of some of  "<li>".

It could be also useful, if the fix is not so easy, to enable or disable "Reformat on Save" functionality depending on the type of the file ( only PHP files, for example ) ; actually you can enable or disable it globally.