PHP Folding

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!
Post Reply
Joakim Christiansen
Posts: 2
Joined: Wed Aug 29, 2007 6:04 am

PHP Folding

Post by Joakim Christiansen »

It would be VERY handy to have folding when editing PHP code, you get so much better overview when dealing with complicated sources then. You can have it for keywords like "If, Function, While" etc.
But also let the users make folding sections themselves, maybe something like this:

Code: Select all

//[ Fold start
Code inside here is not visible before a user press the + button to unfold it
//] Fold end
Where the comments with [ defines a folding start

I really appreciate WeBuilder and I've also bought it to support your development, and if you add this then I can also use it for PHP coding without getting frustrated. :) (I could even have a banner for it on my site if you add this fast enough)
Image
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

Hi Joakim,

Try options>Code Collapse

select the code you want to collapse. then, in the gutter next to the line numbers, click the little minus sign at the top of your selection.

I don't think there is yet a 'collapse selection' keyboard shortcut. If there is, some one please point me!

Will
Joakim Christiansen
Posts: 2
Joined: Wed Aug 29, 2007 6:04 am

Post by Joakim Christiansen »

Thanks for showing me this, but it isn't exactly what I wanted. I want folding to be remembered so I can open and close them whenever I want. Now I have to mark the area each time I want to close it.
Image
bandrej
Posts: 65
Joined: Fri Oct 20, 2006 10:50 am
Location: maribor, slovenia

Post by bandrej »

I must agree. This is a must-have if we want to make more and more developers to use WB/RPHP.

Maybe Karlis could create a project file with all necesary meta-data and store code-folding indexes inside it?
to-do: full-screen feature
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

bandrej wrote:Maybe Karlis could create a project file with all necessary meta-data and store code-folding indexes inside it?
yes! :) among other things like bookmarks, FTP settings, opened files, project specific snippets, project paths(servers, sql...), 'project notes', all manner of stuff.

project-name.proj (an xml or ini file)

will
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

I see now that some of the stuff I was suggesting for project-name.proj is being stored in a file called "memory.ini". maybe that could just be extended? or perhaps that's the secret latvian master plan and we just have to wait. :)
bandrej
Posts: 65
Joined: Fri Oct 20, 2006 10:50 am
Location: maribor, slovenia

Post by bandrej »

syrupcore wrote:or perhaps that's the secret latvian master plan and we just have to wait. :)
oooh spooky :lol:
to-do: full-screen feature
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

In version 2008 we are planning to introduce auto-code-folding for every block with { and } brackets. So every pair of { and } will have + and - option.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

Karlis wrote:In version 2008 we are planning to introduce auto-code-folding for every block with { and } brackets. So every pair of { and } will have + and - option.

wow!
User avatar
Boofo
Posts: 69
Joined: Mon Sep 15, 2008 6:15 pm
Location: Des Moines, Iowa (USA)
Contact:

Re: PHP Folding

Post by Boofo »

Why doesn't the code folding work with Wrap Lines on? It states you can't use both at the same time. Even EditPlus can do that. Is this something that can be added ro fixed in future versions?
xenon2050
Posts: 7
Joined: Thu Oct 02, 2008 11:07 pm

Re: PHP Folding

Post by xenon2050 »

Hmm, well I would really like to be able to collapse my CSS code and it doesn't seem to work.
Post Reply