How i can change the color of a word in a textbox?
example:
i want when i write for example <html> then converts to <html> and after when i write i will write again black. but when program finding "<html>" the program will replace it to this <html>
Printable View
How i can change the color of a word in a textbox?
example:
i want when i write for example <html> then converts to <html> and after when i write i will write again black. but when program finding "<html>" the program will replace it to this <html>
You can't do this in a textbox, as it only supports single font colors for the entire box. You should look at the richtextbox control, which using RTF, can support doing what you want.
I have a syntax highlighter code in the codebank, but like kleinma mentions, it uses a Richtextbox, not a TextBox.