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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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/