PythonWin/Scintilla aggressive folding...

Just van Rossum just at letterror.com
Wed Jul 26 05:24:28 EDT 2000


Neil Hodgson wrote:
>    [ ... ] I introduced the level
> neutral comments idea after developing the original strictly indentation
> based code and using it on example files. First blank lines had to become
> level neutral as lots of functions and methods have blank lines. Then I
> found lots of commented out bits so made the comment lines work like blank
> lines. Another heuristic that may be light weight would be that comment
> lines try to bind in a forwards direction but this may require some
> look-ahead.

The latter would indeed make a lot of sense; I think it's safe to say
that most comments apply to the code after it. Also: folding away too
much is worse than folding too little.

still-hope-to-find-time-some-day-to-port-Scintilla-to-my-platform-ly y'rs -- just



More information about the Python-list mailing list