code folding

Request Features and Feature Changes

code folding

Postby taz.beta » Wed Oct 22, 2008 10:21 am

I have another request, if it is not too difficult.
So, When I fold something like:
Code: Select all
if($sondition) {
  //some code here
}

the result is
Code: Select all
if($sondition) {

I think it will be more legibly if it will look like:
Code: Select all
if($sondition) {...}

Also, if I select the all line with the fold, and copy it, it will be good to copy the whole block.
To be more explicit, SHIFT + END should select if($sondition) {...} and not just if($sondition) {

Hope didn't was too confusing. English is not my strong point!
taz.beta
User
 
Posts: 15
Joined: Wed Oct 15, 2008 12:41 pm

Re: code folding

Postby cody » Wed Oct 22, 2008 11:57 am

taz.beta wrote:I have another request, if it is not too difficult.
So, When I fold something like:
Code: Select all
if($sondition) {
  //some code here
}

the result is
Code: Select all
if($sondition) {

I think it will be more legibly if it will look like:
Code: Select all
if($sondition) {...}



I agree, but unfortunately I don't think this can be achieved very easily with the Scintilla code folding. Will look into it though sometime.

taz.beta wrote:Also, if I select the all line with the fold, and copy it, it will be good to copy the whole block.
To be more explicit, SHIFT + END should select if($sondition) {...} and not just if($sondition) {


Yes this make sense and should doable.


Thanks,

Cody
User avatar
cody
Site Admin
 
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States

Postby taz.beta » Wed Oct 22, 2008 1:52 pm

Thank you for quick response...
I have found this link:
http://sphere.sourceforge.net/flik/docs/scintilla-folding.html

See the part where say:"Set some visual preferences"

Hope it will help...:)

Great job with this editor, by the way...:)
taz.beta
User
 
Posts: 15
Joined: Wed Oct 15, 2008 12:41 pm

Postby cody » Wed Oct 22, 2008 3:27 pm

Thanks,

Those seem to just relate to the style of the +/- boxes and lines drawn in the margin.

I think I might be able to limit how many lines are folded in the fold though so something like this could be done.

Code: Select all
int main {
    int a;
    char b;
}



Code: Select all
int main {
}


and a horizontal line can optionally be drawn between the brackets when the fold is contracted..

Code: Select all
int main {
-------------------
}


I think that that is all that is currently available. I am waiting for wxPython 2.9 to be released as it has a much newer version of Scintilla that may have some more options.

Cody
User avatar
cody
Site Admin
 
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States

Postby taz.beta » Wed Oct 22, 2008 3:49 pm

I'm happy with that for now...:)
Hope wxPython 2.9 will be released soon...:)

Thank you again for really quick reply...
taz.beta
User
 
Posts: 15
Joined: Wed Oct 15, 2008 12:41 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron