User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 456,539 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,245 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser: Programming Forums
Views: 371 | Replies: 1
Reply
Join Date: Oct 2007
Posts: 3
Reputation: bibaso is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bibaso bibaso is offline Offline
Newbie Poster

Help STC_LEX_HTML doesn't fold

  #1  
Oct 14th, 2007
High....
I am making a multi editor to use in my (some days in a month) job relateed to web building, and i have a problem in my html editor.
I transformed the StyledTextCtrl_2 module from the wxPython Demo, from Python editor to HTML editor. Thats mean that i changed the Lexer, put a keywords list and changed the styles to stc_H_styles. It works fine, (besige the zig-zag underline under text between <script> and </script>, that i can't get rid off).
The major problem is that the Lexer don't fold the text in the window, it doesn't show any marks on the margin. and if i just change the lexer to STC_LEX_PYTHON, then it show the marks and folds and expends fine.
So the question must be - what do i have to change concern to folding, when i change Lexer
I don't want to bother you people with code - I'm not sure i understand how to put it correctly, it is the StyledTextCtrl_2 module from the wxPython Demo.
I am not a programer, i just learnd all that stuff from net in the last year and i'll be happy to find an answer here becouse i have already chacked eny peace of information i got in google (which was not much)...
thanks ..
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2007
Posts: 3
Reputation: bibaso is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bibaso bibaso is offline Offline
Newbie Poster

Re: STC_LEX_HTML doesn't fold

  #2  
Jul 25th, 2008
Well, I found the solution:

therw is another code line to add:
after xxx.SetProperty("fold", "1")
add - xxx.SetProperty("fold.html", "1")

it works !!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Python Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Python Forum

All times are GMT -4. The time now is 4:54 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC