FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Possibly to properly indent nested array structures?

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
possel



Joined: 02 Nov 2008
Posts: 2

PostPosted: Thu Oct 01, 2009 12:24 pm    Post subject: Possibly to properly indent nested array structures? Reply with quote

Hi folks,

after been urged to do some work in PHP it was kind of cure to have at least my favourite IDE as a friend with me Smile

The only thing i have not yet managed (and which is quite annoying, as i am working with SUgarCRM which is making excessive use of nested arrays) is the indentation of (say what?) arrays. So when i push Alt-Shift-F , my arrays look like that:

Code:

$dictionary['abcna_AlfDocuments'] = array(
    'table'=>'abcna_alfdocuments',
    'audited'=>true,
    'fields'=>array (
    'alf_reference' =>
    array (
    'required' => false,
    'name' => 'alf_reference',
    'vname' => 'LBL_ALF_REFERENCE',
    'type' => 'varchar',
    'massupdate' => 0,
    'comments' => 'Alfresco ~ internal reference',
    'help' => '',
    'importable' => 'true',
    'duplicate_merge' => 'disabled',
    'duplicate_merge_dom_value' => '0',
    'audited' => 0,
    'reportable' => 0,
    'len' => '255',
    ),


where i obviously wanted the nested arrays more indented to see the structure of the whole mess.... Any way to configure that? I am currently using NetBeans 6.7.1


Cheers
Andreas
Back to top
View user's profile Send private message
Tomasz Slota
Posted via mailing list.





PostPosted: Thu Oct 01, 2009 1:02 pm    Post subject: Possibly to properly indent nested array structures? Reply with quote

Hello,

This is known problem, see

http://www.netbeans.org/issues/show_bug.cgi?id=168396

You may want to vote for the issue, hopefully it will get fixed soon.

Best regards,
-TS



possel wrote:
Quote:
Hi folks,



after been urged to do some work in PHP it was kind of cure to have at least my favourite IDE as a friend with me :-)



The only thing i have not yet managed (and which is quite annoying, as i am working with SUgarCRM which is making excessive use of nested arrays) is the indentation of (say what?) arrays. So when i push Alt-Shift-F , my arrays look like that:




Code:


$dictionary['abcna_AlfDocuments'] = array(

'table'=>'abcna_alfdocuments',

'audited'=>true,

'fields'=>array (

'alf_reference' =>

array (

'required' => false,

'name' => 'alf_reference',

'vname' => 'LBL_ALF_REFERENCE',

'type' => 'varchar',

'massupdate' => 0,

'comments' => 'Alfresco ~ internal reference',

'help' => '',

'importable' => 'true',

'duplicate_merge' => 'disabled',

'duplicate_merge_dom_value' => '0',

'audited' => 0,

'reportable' => 0,

'len' => '255',

),







where i obviously wanted the nested arrays more indented to see the structure of the whole mess.... Any way to configure that? I am currently using NetBeans 6.7.1





Cheers

Andreas










Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB