[wxPython-users] Folding XML in StyledTextCtrl?

Robin Dunn robin at alldunn.com
Tue Jul 4 19:23:52 PDT 2006


Leeuw van der, Tim wrote:
> Hi,
> 
>  
> 
> I have some questions about the StyledTextCtrl … I want to use it in an 
> application to display XML data. I would like to enable folding.
> 
>  
> 
> I’ve seen the StyledTextCtrl sample in the WxPython Demo, and it does 
> folding for Python. However, whenever I switch the lexer to XML mode, 
> the folding abilities disappear.

Looking at the source for the lexer it looks like it is supposed to 
support folding.  Try setting the "fold.html" property in addition to 
the "fold" property.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list