Are there libraries that would provide for formatting the content of a text box (or richtextbox) based on the content, assuming the content conforms to a pattern (in essence syntax highlighting)? It would be nice if this were possible in both the web world as well as winform, though I’d prefer winform (or WPF for that matter).
Share
All that you need to do is to programmatically select text and then set the SelectionColor property. Of course, you will need to write the regular expression(s) that figures out what text to select, but coloring it afterward is simple.
Oh yeah; this will not work for a TextBox, only a RichTextBox (obviously).