[feedback] folding in scintilla

Nick Sabalausky a at a.a
Mon Apr 12 23:30:50 PDT 2010


"maXmo" <nospam at nospam.org> wrote in message 
news:hq0qrq$13pb$1 at digitalmars.com...
> Nick Sabalausky Wrote:
>
>> "maXmo" <nospam at nospam.org> wrote in message
>> news:hq083d$2qpo$1 at digitalmars.com...
>> > cpp lexer folding in scintilla always seemed bizarre to me and I tried 
>> > to
>> > implement folding algorithm similar to that of akelpad or editplus.
>> >
>> > https://sourceforge.net/tracker/?func=detail&aid=2986054&group_id=2439&atid=352439
>> >
>> > What do you think?
>>
>> I don't know if this is applicable or not, but one thing that drives me
>> absolutely crazy is in Programmer's Notepad 2 is how collapsing this:
>>
>> foo
>> {
>>   bar
>> }
>>
>> Will collapse on the "{" line instead of the "foo" line. I hate that sooo
>> much.
>>
>> Not sure if that's relevent to your patch, and not sure if PN2 uses
>> scintilla  or what, so take it for whatever it's worth.
>>
> I had exactly same reason: old folding works only for sun style, my 
> folding treats sun and ms style equally.
> See: http://i42.tinypic.com/2qjx1mf.png

Ahh, I see. No, that's not what I was talking about. This is a mockup of the 
way I've been wanting it:

http://www.semitwist.com/download/goodFolding.png

Putting it on the line with the "{" seem ridiculous, ugly and just plain 
sloppy to me. (IMO).





More information about the Digitalmars-d mailing list