Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax Highlighting in RichTextBox

Status
Not open for further replies.

hellferret

Programmer
Mar 15, 2001
91
GB
Can anyone give me any ideas on how to highlight keywords in a RichTextBox? I am writing a SQL query tool, and I would like to highlight all recognised SQL keywords in the RichTextBox as the user types.

My first attempts haven't been turning out too well:
It's just far too slow and variable names can contain keywords (example: tblPatents - don't want the at highlighted.)

Any ideas would be greatly appreciated.



HF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top