|
| Code Folding on Arrays (or maybe just vars in general) | |
Veteran
Joined: 22 May 2008 |
Posts: 141 |
|
|
|
Posted: Wed Oct 07, 2009 6:43 pm |
|
|
|
|
|
I've got a couple arrays in my document:
$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.
|
|
|
| | |
|
| | |
|
| | |
Joined: 07 Sep 2009 |
Posts: 12 |
Location: Knoxville, TN |
|
|
Posted: Sun Nov 08, 2009 9:08 pm |
|
|
|
|
|
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. |
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.
|
|
| Need to keep this alive | |
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
|
|
|
| |