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.
Summary: | multiline alignment in js | ||
---|---|---|---|
Product: | javascript | Reporter: | alex108 <alex108> |
Component: | Editor | Assignee: | Petr Pisl <ppisl> |
Status: | NEW --- | ||
Severity: | normal | CC: | anuith |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
alex108
2010-09-02 05:49:15 UTC
Please make this possible. It will make our life easier. The formatting of this case is better now. The result is: var oArr = new Array("one", "two", "trhee"); Do we need an option for the alignment like this: var oArr = new Array("one", "two", "trhee"); or is better to write: var oArr = new Array( "one", "two", "trhee"); ? (In reply to Petr Pisl from comment #2) > The formatting of this case is better now. The result is: > > var oArr = new Array("one", > "two", > "trhee"); > > Do we need an option for the alignment like this: > > var oArr = new Array("one", > "two", > "trhee"); > > or is better to write: > > var oArr = new Array( > "one", > "two", > "trhee"); > > ? The PHP alignment is looking best now, but the problem reported here is involving JavaScript language. Hello Petr! Thanks a lot for your answer. It will be fine to have the option which makes following array multiline alignment (the first case of your question): var oArr = new Array("one", "two", "trhee"); This is better at least at my point of view. May be this feature will be usefull for some other people. Best Regards, Alexey Makhov. |