Code Collapsing/Expanding

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
DuncanIdaho
Posts: 3
Joined: Fri May 20, 2005 11:52 pm

Code Collapsing/Expanding

Post by DuncanIdaho »

I humbly request the code collapsing/expanding feature. Not an emergency. But it's useful when your documents get really long...

Thanks,
Duncan Idaho
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Thank you! for which language you need it most?

I can not promise this for near future though, because it requires some really hard programming and we are currently overloaded with feature requests.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Bendis
Posts: 35
Joined: Mon Jun 06, 2005 1:10 pm

Post by Bendis »

admin wrote:Thank you! for which language you need it most?
For me, this feature would be mostly needful for CSS.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Thanks!

Currently while there is no progress with code collapsing features, the navigation problem can be solved by using the Code Explorer.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Unquick
Posts: 25
Joined: Thu Jun 23, 2005 12:18 am

Post by Unquick »

Code collapsing would be handy for PHP.

I would recommend region blocks:

#region
<code>
#endregion

I think that this feature would serve best for php class files.
It would allow you neatly organize your method groups.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Unquick, interesting idea. I will think about this.
Karlis Blumentals
Blumentals Software
www.blumentals.net
donull
Posts: 17
Joined: Fri Oct 14, 2005 5:08 am

Post by donull »

OH YES! This is THE feature!... I joined the forum to request this. I'd love it for PHP and HTML. I've seen this feature in other basic editors, like SCiTE, so you should give it a try :wink:
/dev/NULL

Post by /dev/NULL »

I will definitely support this request. This helps alot by reducing the amount of code you have to scroll..

I would like this feature for css and html (collapse html blocks).
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

I had an idea for a different implementation. I was thinking about this today and wondering if there is already a logical connection between 'select tag block' and the basic logic needed to collapse a block of code. I think this might only currently be applicable to HTML, not css or php.

Instead of adding blumental specific code to your document like #region/#endregion, could I just right click the starting tag for a section and select 'collapse tag block'. then the opening and closing tags would fold to one line with an icon in the gutter or just a diffent color(like red) for the tags. Right click again and select 'expand tag block'.

Another thought was using bookmarks. Collapse everything between this bookmark and the next. double click the bookmark to expand it.

just thinking out loud
Will
donull
Posts: 17
Joined: Fri Oct 14, 2005 5:08 am

Post by donull »

mmm... :idea: i like your idea syrupcore, the one with the bookmark stuff. And by the way, have you try Dreamweaver 8? It's code collapsing is unbelievable! :shock: . it collapses tags, blocks, and you can even select the lines you want to collapse with [+] [-] feature! Take a look at the quicktour at macromedia's there's a video showing how it works, that is just nuts!!...
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Code collapsing most likely will be available in version 2006 which is curently under development.
Karlis Blumentals
Blumentals Software
www.blumentals.net
peep
Posts: 25
Joined: Thu Feb 15, 2007 10:20 am

Notepad++

Post by peep »

Current version of the open source Notepad++ has a cute collapse for all the languages. I'd like to see it that way too. :roll:
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Re: Notepad++

Post by syrupcore »

peep wrote:Current version of the open source Notepad++ has a cute collapse for all the languages. I'd like to see it that way too. :roll:
is there something you're missing with webuilders code collapse? works great for me.
max999
Posts: 4
Joined: Mon Feb 19, 2007 12:12 pm

Post by max999 »

Collapse with [+] [-] it is the best variant! And also, when the block is collapsed, at holding on it of the cursor of the mouse the emerging help showing jumps out internal contents of this block. It would be good.
gesmith1031
Posts: 4
Joined: Thu Sep 14, 2006 5:01 pm

Post by gesmith1031 »

This would be a great addition. While any method to collapse would be great my vote would swing toward using #region like in .net.
Post Reply