Re: Arcane question regarding white space, editors, and code collapsing

2009-11-29 Thread inhahe
I had this same problem with an application called Notepad++, which is a shame because I like the way it works and it's nice and tight. Now I use Komodo Edit instead, which doesn't have that problem, and has all the features of Notepad++ but just isn't as fast. Also all the colors were awful, and

Re: Arcane question regarding white space, editors, and code collapsing

2009-11-28 Thread Aahz
In article <87fx8bl74c@benfinney.id.au>, Ben Finney wrote: >Wells writes: >> >> Is it... pythonic, then, to have these lines of tabs/spaces to support >> code collapsing? Is it proper, improper, or irrelevant? > >It's quite improper (though syntactically null, in Python) to have >trailing wh

Re: Arcane question regarding white space, editors, and code collapsing

2009-11-18 Thread Ben Finney
Steven D'Aprano writes: > On Thu, 19 Nov 2009 10:56:35 +1100, Ben Finney wrote: > > > It's quite improper (though syntactically null, in Python) to have > > trailing whitespace on lines. That includes blank lines. > > Blank lines are far from improper in Python, they're recommended by > PEP 8. I

Re: Arcane question regarding white space, editors, and code collapsing

2009-11-18 Thread Steven D'Aprano
On Thu, 19 Nov 2009 10:56:35 +1100, Ben Finney wrote: > Wells writes: > >> Is it... pythonic, then, to have these lines of tabs/spaces to support >> code collapsing? Is it proper, improper, or irrelevant? > > It's quite improper (though syntactically null, in Python) to have > trailing whitespa

Re: Arcane question regarding white space, editors, and code collapsing

2009-11-18 Thread Ben Finney
Wells writes: > Is it... pythonic, then, to have these lines of tabs/spaces to support > code collapsing? Is it proper, improper, or irrelevant? It's quite improper (though syntactically null, in Python) to have trailing whitespace on lines. That includes blank lines. One major reason is that t

Arcane question regarding white space, editors, and code collapsing

2009-11-18 Thread Wells
I work in TextMate a lot, which I generally love, but it's code collapsing confounds me. Essentially you have to indent blank lines to the proper level for the current block. Then it will collapse that section as one section. If you have simply a new line, it will see it as a break, and not collaps