Folding XML in StyledTextCtrl?

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.

Can anyone help?

Thanks,

–Tim

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!

That works perfectly, thanks a ton!

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: woensdag 5 juli 2006 4:24
To: wxPython-users@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@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org