-
Jun 1st, 2010, 01:26 AM
#1
Thread Starter
Junior Member
Changing Font Color Of KeyWords In Textbox
Hey guys
I am building a text editor kind of like Notepad++ and I would like to set up the color coder for key words such as And. I will be doing this for VBScript and Java.
I would like the keywords to change when the file is saved for example, when the user loads a blank document nothing will be color coded but if the document is saved as .vbs the keywords for vbs will be blue and comments ' will be green.
If anyone can help me out that would be great!
-
Jun 1st, 2010, 01:32 AM
#2
Re: Changing Font Color Of KeyWords In Textbox
You'll need to use a RichTextBox as the TextBox doesn't support multiple formats. Visit the VB.NET CodeBank forum and check out Icyculur's thread on syntax highlighting.
-
Jun 1st, 2010, 02:14 AM
#3
Thread Starter
Junior Member
Re: Changing Font Color Of KeyWords In Textbox
Thanks, Ill check that out and post back here on how I go.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|