简体   繁体   中英

wxPython Syntax Highlight Widget

Is there a widget similar to TextCtr in wxPython that would add syntax highlight to the text field.
I went over documentation but couldn't really find anything.

If not, how can i create it myself. I need just simple HTML highlight. Thanks

There are several places to look for examples of this sort. The StyledTextCtrl, PyShell / PyCrust and Editra. PyShell / PyCrust have a demo in the official wxPython demo that actually show syntax highlighting. Editra is distributed with wx 2.8 and 2.9, but I'm not sure if it's included in the bleeding edge Phoenix release. However, I think it does syntax highlighting for multiple languages. You can also download it here: http://editra.org/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM