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 247126

Summary: Request for indentation style also on PHP and javascript
Product: php Reporter: Aldo_Mariussi
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.1   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description Aldo_Mariussi 2014-09-15 11:59:08 UTC
Our company indentation style for PHP and javascript is:

if (true)
  { 
    // do stuff
  }

or (Visually with whitespace made explicit):
if (true)
[space][space]{ 
[space][space][space][space]// do stuff
[space][space]}

Exactly the same issue was dealt with and solved for C++.

This a link to the request for C++:
https://netbeans.org/bugzilla/show_bug.cgi?id=192127

This is a link to the solution (only for C++)
http://hg.netbeans.org/cnd-main/rev/0d4f328eaf02

Would you be so kind to implement the same solution (I assume it should be simple since it has already been solved for C++) also for PHP and Javascript?

If possible could you make it available also for other programming languages? (eg: CSS, HTML, Java)

Thank you VERY MUCH!!!