I had previously asked a somewhat-related question in another thread, got an answer and then asked the following question (more succinctly) in a reply-to-the-reply - - but I suspect that my second question got lost. I apologize for the length here, but I want to be as specific as possible.
So, here it is:
Is there are setting whereby I can force php scripts to:
1) fold logic and operation blocks (by which I mean if-else-switch- foreach and so on) enclosed by brackets - - other than the temporary (and - - to me - - unwieldy) command "fold selection"; in particular, I would like to have the "fold arrow" appear in the gutter (as it often does in other editors)
Specifically: I must be able to fold structures like the following at each bracket:
if (conditional_1) { logic block } else if (conditional_2) { switch ($op) { bunch of case statements } } else { foreach(array as array_2) { if (conditional_3) { some logic break; } } }
There are times this logic gets quite deep (such as in parsing and evaluating complex xml blocks.
For debugging, it is vital that I be able to conveniently open and close these blocks.
In BBEdit javascript documents, I am able to do this - - and I have configured php identically.
Am I missing something?
2) fold properly-closed and properly formatted tags that occur in the following context:
<div> <?php some logic ?> </div>
This is quite important in the context of Drupal scripts where the logic can get quite complex. Without this ability, it is difficult to debug the scripts.
Thanks so much and sorry for the length here.
-- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email "support@barebones.com" rather than posting to the group.
To unsubscribe, reply using "remove me" as the subject.
Apr 09
newtonpage Re: Balance and Fold Question
Apr 09, 2010; 07:07
newtonpage
Re: Balance and Fold Question
Apr 09
Charlie Garrison Re: Balance and Fold Question
Apr 09, 2010; 07:47
Charlie Garrison
Re: Balance and Fold Question
Apr 09
stephen taylor Re: Balance and Fold Question
Apr 09, 2010; 08:31
stephen taylor
Re: Balance and Fold Question
Apr 09
Toadling Re: Balance and Fold Question
Apr 09, 2010; 09:08
Toadling
Re: Balance and Fold Question
Apr 09
Charlie Garrison Re: Balance and Fold Question
Apr 09, 2010; 09:27
Charlie Garrison
Re: Balance and Fold Question
Apr 09
stephen taylor Re: Balance and Fold Question
Apr 09, 2010; 09:14
stephen taylor
Re: Balance and Fold Question
Apr 09
Kendall Conrad Re: Balance and Fold Question
Apr 09, 2010; 09:41
Kendall Conrad
Re: Balance and Fold Question
Apr 09
Charlie Garrison Re: Balance and Fold Question
Apr 09, 2010; 10:47
Charlie Garrison
Re: Balance and Fold Question
Apr 09
Toadling Re: Balance and Fold Question
Apr 09, 2010; 11:14
Toadling
Re: Balance and Fold Question
Apr 09
stephen taylor Re: Balance and Fold Question
Apr 09, 2010; 12:19
stephen taylor
Re: Balance and Fold Question
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!