mrmcpott, on 15 Apr, 2009 - 09:27 AM, said:
Quote
That'd be helpfull, if you didn't mind.
Well here i made a control which is basically a richtextbox with syntax highlighting capabilities it should give you a basic idea on how to add syntax highlighting to your apps.
The bad thing is that for html and css(and other languages) Syntax highlighting you should learn regex for matching of tags etc(it took me a while to figure out what regex patterns i should use)
SyntaxRTB.zip (1.58K)
Number of downloads: 73
After you add it to your form you can use this code at the Load event to add Regex patterns(or just what to replace(Using String.Replace))
SyntaxRTB1.Add("<!--.*-->", Color.Green, True)
Hope this helps
This post has been edited by dom96: 15 April 2009 - 12:37 PM

New Topic/Question
Reply



MultiQuote



|