Page 1 of 2
Code folding
Posted: Wed Nov 22, 2006 4:28 pm
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?
Re: Code folding
Posted: Wed Dec 06, 2006 5:45 pm
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.
Agreed
Posted: Tue Mar 20, 2007 3:24 pm
by rsperberg
Just want to note my support for this feature.
Roger
Posted: Mon Mar 26, 2007 10:10 am
by kdaube
I strongly support this request - guess this feature is a must for real coders.
Klaus Daube
Agreed
Posted: Wed Apr 04, 2007 12:10 am
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.
Posted: Sat Apr 07, 2007 11:51 am
by SergeantRock
Absolutely. Code Folding is the major feature I miss from TP.
Expecting it to be available about 2012.
Posted: Tue Apr 10, 2007 9:02 am
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
Code Folding
Posted: Wed May 02, 2007 12:29 pm
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.
Posted: Wed May 02, 2007 1:28 pm
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.
Posted: Tue May 08, 2007 6:47 pm
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...
Posted: Wed Jul 04, 2007 1:52 am
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!
Posted: Fri Jul 13, 2007 8:12 pm
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 (+).
Posted: Thu Aug 09, 2007 11:49 am
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)
Code folding
Posted: Sun Aug 19, 2007 9:10 pm
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.
Posted: Sun Dec 02, 2007 9:28 am
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.