#76 Code folding

open
nobody
None
5
2005-05-09
2005-05-09
Piotr Jura
No

Check out my SF project at http://sourceforge.net/
projects/mystix/. It's a web development tool based on
SynEdit with code folding implementation (it's still buggy
). More information about this was posted by my on
SynEdit development mailing list.

Piotrek

Discussion

  • Piotr Jura
    Piotr Jura
    2005-05-09

    • summary: Already working on it --> Code folding
     
  • Stef Mientki
    Stef Mientki
    2005-05-24

    Logged In: YES
    user_id=334302

    hello Piotr,

    your program looks very good, my compliments.
    I didn't llok inside your code, because I just have synedit
    stable again after a big PC crash.
    Can you tell something global about the code folding,
    is it implemented as a layer on top of synedit,
    or did you have to hack a lot of synedits code ?
    Can you code folding be ported back to synedit ?

    thanks,
    Stef Mientki

     
  • Stef Mientki
    Stef Mientki
    2005-05-24

    Logged In: YES
    user_id=334302

    hello Piotr,

    your program looks very good, my compliments.
    I didn't llok inside your code, because I just have synedit
    stable again after a big PC crash.
    Can you tell something global about the code folding,
    is it implemented as a layer on top of synedit,
    or did you have to hack a lot of synedits code ?
    Can you code folding be ported back to synedit ?

    thanks,
    Stef Mientki

     
  • Piotr Jura
    Piotr Jura
    2005-05-25

    Logged In: YES
    user_id=1266517

    Hello,

    I've posted information about code folding to the SynEdit
    development list recently, search the archive. Code folding
    modifies SynEdit a bit, it wouldn't be possible not to interfere
    in it at all. What do you mean by "ported back to SynEdit?"

    Cheers
    Piotrek

     
  • PyScripter
    PyScripter
    2005-07-13

    Logged In: YES
    user_id=714426

    Great work!!!
    I checked a recent version and works reasonably well,
    although there are still some rough edges (I could't move
    the cursor with the keyboard out of a folded region).

    I liked the way you allowed for adding code folding to
    existing highlighters. The scheme with regions a la
    SynUniHighlighter is very flexible and should be able to
    handle most code folding needs. One question I had though
    is whether it could be used with Python files where blocks
    open with " :" and are defined by the indentation level.

    e.g.
    class A:
    def f(self):
    return 1

    class B:
    pass

     
  • Piotr Jura
    Piotr Jura
    2005-07-13

    Logged In: YES
    user_id=1266517

    Hi,
    Thanks for the good word :) The issue you've mentioned will be
    fixed in next version. Python behaviour is on my to-do list from
    the beginning, it's not yet avaible becouse this specific
    behaviour need another way of parsing code.

    Regards,
    Piotrek Jura

     
  • Anton Zhuchkov
    Anton Zhuchkov
    2008-04-25

    Logged In: YES
    user_id=457109
    Originator: NO

    Hello! Is any news of integrating this feature into SynEdit? It's almost three years through...