I was wondering if it was possible to use pygments with wxPython?
I want to use it on the text_ctrl widget.
If it is not possible on that widget but is possible on an other please tell me...
Kruptein
15
Posting Whiz in Training
Recommended Answers
Jump to PostNo. It may be possible with some sort of web page control, but that solution would be so convoluted that I don't even want to think about it.
Are you just trying to get syntax highlighting, or do you want pygments specifically? For the former, use wx.StyledTextCtrl.
Jump to PostYou can look at a code here for wx.StyledTextCtrl
http://wiki.wxpython.org/StyledTextCtrl%20Log%20Window%20Demo?action=AttachFile&do=view&target=colourlog.py
All 5 Replies
scru
909
Posting Virtuoso
Featured Poster
Kruptein
15
Posting Whiz in Training
snippsat
661
Master Poster
scru
909
Posting Virtuoso
Featured Poster
Kruptein
15
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.