NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code Folding on Arrays (or maybe just vars in general)
Veteran

Joined: 22 May 2008
Posts: 141
Reply with quote
I've got a couple arrays in my document:
Code:
$responses = array(
   'Always' => 0
   ,'Most times' => 0
   ,'Sometimes' => 0
   ,'Never' => 0
   ,'N/A' => 0
   ,'Unanswered' => 0
);

$questions = array(
   'q1' => $responses
   ,'q2' => $responses
   ,'q3' => $responses
   ,'q4' => $responses
   ,'q5' => $responses
   ,'q6' => $responses
   ,'q7' => $responses
   ,'q8' => $responses
   ,'q9' => $responses
   ,'q10' => $responses
   ,'q11' => $responses
);
It would be nice to be able to collapse them like I can with conditional blocks.
View user's profileFind all posts by simshaunSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
I agree with your request, it would be nice to add that. Might I give you a small suggestion for now? If you select text, you can fold the selected block. So I usually just select the array and fold it like that.
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 27 Apr 2007
Posts: 72
Reply with quote
+1
View user's profileFind all posts by sirjardaSend private message
Veteran

Joined: 22 May 2008
Posts: 141
Reply with quote
Blizz wrote:
I agree with your request, it would be nice to add that. Might I give you a small suggestion for now? If you select text, you can fold the selected block. So I usually just select the array and fold it like that.
Thanks. That is what I'm currently doing, but it takes so long compared to just click the minus button and go. Smile
View user's profileFind all posts by simshaunSend private message
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
+1

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website


Joined: 07 Sep 2009
Posts: 12
Location: Knoxville, TN
Reply with quote
simshaun wrote:
Blizz wrote:
I agree with your request, it would be nice to add that. Might I give you a small suggestion for now? If you select text, you can fold the selected block. So I usually just select the array and fold it like that.
Thanks. That is what I'm currently doing, but it takes so long compared to just click the minus button and go. Smile


Yeah, especially if you have, per se, really long arrays/multiline-split-variables. A good example is of a really, really, long, multiline variable including an entire HTML page. (I don't do that, but I've seen it). Imagine having to select everything between the quotes several times in one application to fold the items. It's easier to use a button. Very Happy
View user's profileFind all posts by hyponiqSend private messageVisit poster's websiteYahoo MessengerMSN Messenger


Joined: 20 May 2009
Posts: 11
Location: Germany
Reply with quote
thats ok but not nearly as important as sooo many other things.
View user's profileFind all posts by AbroSend private messageVisit poster's website
Veteran

Joined: 22 May 2008
Posts: 141
Reply with quote
Eh, maybe to you. I could sure use it though.
View user's profileFind all posts by simshaunSend private message
Veteran

Joined: 22 May 2008
Posts: 141
Reply with quote
Don't want this one to get lost. I'm finding myself wanting (quick) array folding more and more every day!
View user's profileFind all posts by simshaunSend private message
Veteran

Joined: 22 May 2008
Posts: 141
Reply with quote
I saw this wasn't implemented in 5956. Hope its being considered since it would be very helpful.
View user's profileFind all posts by simshaunSend private message
Need to keep this alive


Joined: 07 Sep 2009
Posts: 12
Location: Knoxville, TN
Reply with quote
I haven't seen any change in the code folding features yet. This seriously needs to be implemented.
View user's profileFind all posts by hyponiqSend private messageVisit poster's websiteYahoo MessengerMSN Messenger
Code Folding on Arrays (or maybe just vars in general)
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
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic