python code folding

This forum should be used for all code folding problems, questions or suggestions. You can also use this forum to request folding support for a new language.
Post Reply
gwgs
Posts: 87
Joined: Tue Nov 21, 2006 6:30 pm
Location: Auckland

python code folding

Post by gwgs »

could you add a couple more commands to the python code folding routines
begin: try
begin: except

handle like you do for any other block in python


sample code:

Code: Select all

try:    
    f=open(self.infile,'r')
    f.close()
except:
    if self.fromcommandline: 
        self.logit("ERROR: txtfile '"+self.infile+"' Missing")
        if self.fromcommandline: 
            sys.exit()
        self.errors=self.errors+1
thanks

Grant
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

The xFolder.dll has been updated to do this and this new version can be found here: http://www.zeusedit.com/z300/xFolder.zip

Cheers Jussi
gwgs
Posts: 87
Joined: Tue Nov 21, 2006 6:30 pm
Location: Auckland

Post by gwgs »

Works great thanks Jussi


Grant
Kennedy
Posts: 1
Joined: Sat Sep 27, 2008 7:47 am

Post by Kennedy »

great program, Thanks.
Post Reply