[wxPython-users] Folding XML in StyledTextCtrl?

Leeuw van der, Tim tim.leeuwvander at nl.unisys.com
Wed Jul 5 00:13:26 PDT 2006


That works perfectly, thanks a ton!

-----Original Message-----
From: Robin Dunn [mailto:robin at alldunn.com] 
Sent: woensdag 5 juli 2006 4:24
To: wxPython-users at lists.wxwidgets.org
Subject: Re: [wxPython-users] Folding XML in StyledTextCtrl?

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!


---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org





More information about the wxpython-users mailing list