Code folding

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

dmsg24
Posts: 1
Joined: Wed Nov 22, 2006 4:26 pm

Code folding

Post by dmsg24 »

Is there a function or an add-on that allows for code folding, i.e. collapsing code objects like HTML tags, CSS styles etc.? If not, is there any plan to add this to TextPad?
sikander
Posts: 3
Joined: Sun Jun 19, 2005 1:15 am

Re: Code folding

Post by sikander »

Yes, this would be a really really nice feature.

I just noticed it on Notepad++ and came here to ask and suggest if Textpad has any plans for it.
User avatar
rsperberg
Posts: 35
Joined: Thu Jul 29, 2004 2:26 pm
Location: NJ

Agreed

Post by rsperberg »

Just want to note my support for this feature.

Roger
kdaube
Posts: 7
Joined: Mon Mar 26, 2007 9:55 am
Location: Zürich, Switzerland
Contact:

Post by kdaube »

I strongly support this request - guess this feature is a must for real coders.

Klaus Daube
brunodomingues
Posts: 4
Joined: Wed Apr 04, 2007 12:02 am

Agreed

Post by brunodomingues »

Yep, would be a great add on. :-)

It might be a problem when working with ASP + HTML for example, the html under response.write should also be considered.

If you had this working well I would pay extra to have it, would save me a lot of programming hours and time is money. ;-)
SergeantRock
Posts: 5
Joined: Fri May 05, 2006 2:21 pm

Post by SergeantRock »

Absolutely. Code Folding is the major feature I miss from TP.

Expecting it to be available about 2012.
Mike McTernan
Posts: 2
Joined: Tue Apr 10, 2007 8:37 am

Post by Mike McTernan »

I would love folding in Textpad.

I've tried Notepad++, bit it's not a good as Textpad in quite a few areas, so I stick with the lovely Textpad at this expense.

Mike
dbusby3
Posts: 8
Joined: Mon Jul 07, 2003 3:27 pm

Code Folding

Post by dbusby3 »

I could swear, and often do, that I had suggested code folding. I in my opinion this could probably be bundled with the styles. If the styles and highlighting were all converted to XML files it may make things easier to implement.

Also would be nice to be able to see a transparent colored lines outlining the blocks of code.

--if($x eq 1){
| $x=$x*22;
| } else {
| $x=$x/22;
--}

Something like that.
troels_kn
Posts: 32
Joined: Fri Oct 28, 2005 12:51 pm

Post by troels_kn »

I wouldn't use this feature, and if it was possible, I would turn it off. So if it's ever implemented, I would prefer if it was optional.
BKDotCom
Posts: 5
Joined: Mon Mar 01, 2004 8:49 pm
Location: Jenks, OK
Contact:

Post by BKDotCom »

At the very least a "automatic bookmarks" side-bar option.
It would list all the function names to q quick go-to..
Currently I use the F2-bookmark thing for jumping to bookmarks I've set...
Or maybe even a sidebar that would show the first x characters or a preg-match of F2'd lines...
BrianM
Posts: 1
Joined: Wed Jul 04, 2007 1:34 am
Location: Brisbane, Australia

Post by BrianM »

I strongly support this suggestion. I frequently have to edit large code library files (Oracle packages) and this would be terrifically useful. Of course it needs to be optional - perhaps it could be an option which would be controlled at the document class level, 'On' for some e.g. *.pkg and 'Off' for *.txt.

In the meantime, especially with v5.0.3, it is possible to use the search results pane as a procedure list using carefully crafted regular expressions - create yourself some macros to perform the searches! :)
User avatar
CodeBase
Posts: 30
Joined: Thu Jun 26, 2003 7:18 pm
Location: Edmonton, AB

Post by CodeBase »

I also would like this feature, but I don't think it needs to be a feature that you can turn off in the preferences. When TextPad recognizes text can be be folded, there would be a minus (-) sign in the margin. If you don't want to fold the text, just don't click the minus and change it to a plus (+).
macouno
Posts: 6
Joined: Thu Nov 09, 2006 7:03 pm

Post by macouno »

I've recently been working with notepad++ as well and folding is a great feature that textpad really could do with. It really makes browsing a document a lot simpler.

BTW: another really nice thing in notepad++... a list of classes in a sidemenu (list of functions could be equally cool)
mattrix
Posts: 7
Joined: Sun Aug 19, 2007 8:43 pm

Code folding

Post by mattrix »

I would LOVE code folding....

There are a bunch of ways it could work, though.

In Excel, you can hide rows. Another thing Excel can let you do is have heirarchies where you get a little PLUS symbol to hide children.

Some code folding implementations are syntax aware; some are not.

I suppose it would be good to ask for what we want.

I like the idea of syntax aware folding. Some languages like FORTRAN make this super easy. some, like C, perl, etc., Textpad would have to count brackets. And, if you have a closing brace on a line with subsequent code, what should it do then?

The ability to mark some lines (or bookmark some) or something then toggle it on and off, especially with the ability to use the keyboard to do it, would be ok.

Heck, you could go as far as marking them as a named group. Some editors let you bookmark a cursor location where you could just type something to return there.

Perhaps the way to go would be to be able to take a block of text and mark it somehow as a group/chunk/etc. Then, that group could be hidden/collapsed. This kind of way of doing it would allow for chunks to include parts of lines.

And, you could have the means to drag n drop collapsed chunks to rearrange code.
Tilman
Posts: 2
Joined: Sun Dec 02, 2007 9:24 am

Post by Tilman »

Yes please!

As a regular Visual Studio user I have come to know and love code folding, or as we like to call it 'outlining'. It's the one major feature missing from TextPad.
Post Reply