NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Guru master

Joined: 05 Jul 2004
Posts: 660
Location: Belgium
Reply with quote
Most of it is, just the indending example I gave above as a semi-feature request is something I often need. I personally use that block editing mostly for modifying mupltiple sql queries at the same time but then i use ultraedit for it.
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 23 Mar 2005
Posts: 21
Reply with quote
Let me just add this suggestion to code collapsing...

This is done by some other editors but I'm not sure I remember which ones.

when you have:
Code:
while()
{
  stuff to be collapsed...
}

and you collapse it, the actual file text becomes:
Code:
while()
{{{
  stuff to be collapsed...
}}}

The editor know that {{{ }}} blocks need to be displayed collapsed and { }blocks need to be displayed regularly.

This method of storing the collapsed areas makes it possible to store the collapsed sections in CVS for example.

Btw, those editors will also allow arbitraty collapses and store them like this:
Code:
// {{{
  stuff to be arbitrary collapsed...
// }}}

_________________
- Fran├žois PLANQUE
View user's profileFind all posts by fplanqueSend private messageVisit poster's website


Joined: 21 Nov 2003
Posts: 39
Reply with quote
Usually, { } and /* */ blocks collapsable
However, supporting this scheme:

Code:

// @CollapseBegin
$asdf = 'asdf';
print $asdf;
if (is_numeric($asdf)) {
  print '$asdf is a numeric';
  $asdf += 100;
}
else {
  print  '$asdf is not a numeric';
  $asdf .= '100';
}
print $asdf;
// @CollapseEnd


Would also be great

_________________
-/ NetGert /-
View user's profileFind all posts by netgertSend private messageVisit poster's websiteMSN Messenger
Collapse/expand of code loop
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 2 of 2  

  
  
 Reply to topic