Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8573

    MattG
    Participant

    Hi!

    Well I use 10 RC13 at the moment, and couldnt check if it is a V10-Bug.

    Following Problem.

    Code Folding with Python, with following example

    def HelloWorld():
    print “Hello World”

    In this case I can fold “correctly” the whole function at
    “def HelloWorld():”

    But if I the allowed “”” comment after the def

    def HelloWorld():
    “”” Just a test “””
    print “hello World”

    the def isnt foldable anymore only all statements on its own, so it is not possible to fold the whole function anymore.

    cheers
    Matthias

    #8575

    Yutaka Emura
    Keymaster

    Hello Matthias,

    Thank you for using EmEditor Professional!

    How do you specify Outline settings for Python? Please check the Properties of Outline plug-in.

    #8578

    MattG
    Participant

    Hi!

    Used your delivered default, sure “colapse comments” is on.
    If it is turned off, what is not an option for me,
    The handling is correct

    Simply try it by yourself 🙂

    As an example:
    – – – – – –


    def HelloWorld():
    print "Hello World!"

    def dummy2():
    print "fubar1"
    if foo == oof:
    """ That some Test
    """
    print "fubar2"
    print "fold1"
    # Just another comment
    # and another

    if __name__=="__main__":
    HelloWorld()

    – – – – – – –

    If you turn “Make comments collapsible” off
    you can fold the indented stuff correctly
    – – – – – –


    [+] def HelloWorld():[...]

    [-] def dummy2():
    | print "fubar1"
    [+] if foo == oof:[...]

    [+] if __name__=="__main__":[...]

    – – – – – – —
    If you turn “Make comments collapsible” on you get the following


    [+] def HelloWorld():[...]

    [-] def dummy2():
    | print "fubar1"
    | if foo == oof:
    [-] """ That some Test
    | """
    | print "fubar2"
    | print "fold1"
    [-] # Just another comment
    | # and another

    [+] if __name__=="__main__":[...]

    – – – – – –
    Worse!

    By the way it doesnt matter if you use the allowed “””-Comment or # after the if, to be correct after the first indentation.

    In case you have a long procedure with comments you cant fold in an intelligent way anymore

    Well… in the meantime till there is an solution I’ll have to use my Eclipse.

    cheers
    Matthias

    #8580

    Yutaka Emura
    Keymaster

    Hello Matthias,

    I reproduced your issue, and I will try to fix this issue.
    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Share with friends... Tweet about this on TwitterShare on FacebookShare on Google+Email this to someone