EmEditor (text editor) Forum Index
   Questions and Answers about Plug-ins
     Folding w/ Outline + Python
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
MattG
Posted on: 6/8/2010 9:25 pm
Just popping in
Joined: 5/11/2010
From: Mainz / Germany
Posts: 12
Re: Folding w/ Outline + Python
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
Flat Previous Topic | Next Topic


Subject Poster Date
   Folding w/ Outline + Python MattG 6/8/2010 3:22 am
     Re: Folding w/ Outline + Python Yutaka 6/8/2010 10:07 am
     » Re: Folding w/ Outline + Python MattG 6/8/2010 9:25 pm
         Re: Folding w/ Outline + Python Yutaka 6/9/2010 6:50 pm

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文