That's where I looked but you use an already defined style. I am using a
custom one based on regexps and FORTRAN levels such as if/endif do/enddo
subroutine/end ...
I have to catch everything and do it myself in some way.
···
-----Original Message-----
From: CLARKE,RON (HP-Vancouver,ex1) [mailto:ron_clarke@hp.com]
Sent: September 26, 2001 3:17 PM
To: 'wxpython-users@lists.wxwindows.org'
Subject: RE: [wxPython] FoldLevels in StyledText
Have you looked at the code in the demo? I am using it and have no problems
with multiple levels.
-----Original Message-----
From: Hassan Aurag [mailto:aurag@cae.com]
Sent: Wednesday, September 26, 2001 11:57 AM
To: WxPython List
Subject: [wxPython] FoldLevels in StyledText
Hi,
I finally could get fold levels to work but only at one level. Now
looking at stc_.py, I only see
wxSTC_FOLDLEVELBASE = stc_c.wxSTC_FOLDLEVELBASE
wxSTC_FOLDLEVELWHITEFLAG = stc_c.wxSTC_FOLDLEVELWHITEFLAG
wxSTC_FOLDLEVELHEADERFLAG = stc_c.wxSTC_FOLDLEVELHEADERFLAG
wxSTC_FOLDLEVELNUMBERMASK = stc_c.wxSTC_FOLDLEVELNUMBERMASK
4 types. For now, I am using wxSTC_FOLDLEVELHEADERFLAG and
wxSTC_FOLDLEVELBASE, but was wondering how one could get nested levels.
An example of this is:
if () then
if () then
...
endif
...
endif
Now I would like to be able to fold the second if as well as the first.
Thanks in advance
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users