Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Win32 API: How to change color of part of text in edit control

Tags:

winapi

I have an edit control. I want to change color of several words (like syntax highlighting). Is it possible?

like image 835
hinduCoder Avatar asked Feb 11 '23 11:02

hinduCoder


1 Answers

No. You need a Rich Edit Control. There are many examples online of addyng syntax highlighting to Rich Edit controls. Eg. Faster rich edit syntax highlighting.

like image 189
Remus Rusanu Avatar answered Feb 15 '23 11:02

Remus Rusanu