- AuthorPosts
- June 8, 2010 at 11:22 am #8573MattGParticipant
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
MatthiasJune 8, 2010 at 6:07 pm #8575Yutaka EmuraKeymasterHello Matthias,
Thank you for using EmEditor Professional!
How do you specify Outline settings for Python? Please check the Properties of Outline plug-in.
June 9, 2010 at 5:25 am #8578MattGParticipantHi!
Used your delivered default, sure “colapse comments” is on.
If it is turned off, what is not an option for me,
The handling is correctSimply 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
MatthiasJune 10, 2010 at 2:50 am #8580Yutaka EmuraKeymasterHello Matthias,
I reproduced your issue, and I will try to fix this issue.
Thanks! - AuthorPosts
- You must be logged in to reply to this topic.