Hello,
first I'd like to say that I'm very impressed with Dabo so far. It's been far 
faster to get things done then trying to learn and use wxpython directly. I'm 
trying to create a custom editor for the gedcom format. This is a very 
specialized format with mixed support and I'd like to create a custom lexer for 
it. I've found the following sites which provide some information:

http://www.yellowbrain.com/stc/index.html
http://www.yellowbrain.com/stc/lexing.html
http://editra.org/forum/viewtopic.php?f=3&t=141

I have dEditor control on my window and it populates with my file. I can see 
that you provide some support for creating custom lexers because you have 
wxSTC_LEX_CONTAINER as a default if it can't find the lexer.

I've set my afterInit of the dEditor to:

def afterInit(self):
        # self._language = "python"
        self._language = "gedcom"

which of course isn't found in the LexerDic which means (I believe) the 
wxSTC_LEX_CONTAINER should be being used. Unfortunately I'm uncertain where to 
proceed from there. I can tell enough that it seems you've added support for 
custom lexers but am uncertain where to tie into to create one? Perhaps a short 
example of a custom lexer that colors the first word of each line? I should be 
able to take it from there. of course any help would be appreciated. 

Thank you,
AaronS



      

--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to