python - Wxpython : How to add new lexer to StyledTextCtrl? -


i wrote own lexer

i want add own new lexer styledtextctrl in wxpython? operating on windows

you'll have subclass control , override setupbasestyles you'll have use stylesetspec specify lexer's settings. here link walks through lot of process:

http://packtlib.packtpub.com/library/9781849511780/ch04lvl1sec05

and here's official wxpython wiki page on subject:

http://wiki.wxpython.org/styledtextctrl%20lexer%20quick%20reference

finally, here's link short example:

http://nullege.com/codes/search/wx.stc.styledtextctrl.setlexer


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -