' Simple Syntax Hilighting example for Rapid-Q by William Yu
' QREdit - Extension of QRichEdit with automatic syntax hilighting
' Not very complete, but you can handle all the special cases.
' HiLighColor - Color to use for hilighting keywords
' AddSyntaxes - Add any keywords you want hilighted
' HiLight - Call first time whenever you load a file, or add new lines
' There are actually 2 separate ways of doing this, the hard way, and the
' easy way. The hard way is to learn RTF and create your own RTF document
' programmically. It's definitely more work than the easy way, which I'll
' demonstrate in this example.
' I've decided to incorporate this into a component for easy reuse.