[feedback] folding in scintilla

2010-04-12 Thread maXmo
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?

Re: [feedback] folding in scintilla

2010-04-12 Thread Andrej Mitrovic
maXmo Wrote: > 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? Personally, I would prefe

Re: [feedback] folding in scintilla

2010-04-12 Thread Nick Sabalausky
"maXmo" wrote in message news:hq083d$2qp...@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

Re: [feedback] folding in scintilla

2010-04-12 Thread maXmo
Nick Sabalausky Wrote: > "maXmo" wrote in message > news:hq083d$2qp...@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&ai

Re: [feedback] folding in scintilla

2010-04-12 Thread maXmo
Nick Sabalausky Wrote: > 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 i

Re: [feedback] folding in scintilla

2010-04-12 Thread Nick Sabalausky
"maXmo" wrote in message news:hq0qrq$13p...@digitalmars.com... > Nick Sabalausky Wrote: > >> "maXmo" wrote in message >> news:hq083d$2qp...@digitalmars.com... >> > cpp lexer folding in scintilla always seemed bizarre to me and I tried >> > to >> > implement folding algorithm similar to that of

Re: [feedback] folding in scintilla

2010-04-13 Thread Nick Sabalausky
"Nick Sabalausky" wrote in message news:hq142v$1hh...@digitalmars.com... > "maXmo" wrote in message > news:hq0qrq$13p...@digitalmars.com... >> 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.

Re: [feedback] folding in scintilla

2010-04-13 Thread maXmo
Nick Sabalausky Wrote: > 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). > 1. How

Re: [feedback] folding in scintilla

2010-04-13 Thread Jérôme M. Berger
maXmo wrote: > Nick Sabalausky Wrote: > >> 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

Re: [feedback] folding in scintilla

2010-04-13 Thread Nick Sabalausky
"maXmo" wrote in message news:hq1k6n$2om...@digitalmars.com... > Nick Sabalausky Wrote: > >> 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

Re: [feedback] folding in scintilla

2010-04-13 Thread maXmo
Nick Sabalausky Wrote: > So, it would be like this mockup (top is sun-style, bottom is multi-line): > > http://www.semitwist.com/download/goodFoldingMore.png > Scintilla's folding is line-based: each line is assigned a fold level and folder hides lines according to these levels (kinda simple py

Re: [feedback] folding in scintilla

2010-04-13 Thread Jussi Jumppanen
Andrej Mitrovic Wrote: > Personally, I would prefer the left and right brace to stay on the same > line as the function definition, and maybe add an elipsis between them > so I can tell that function is folded just by looking at the code. That's a bit like how Zeus does it's folding: http