What is the simplest way to make a text editor "color" spefic words, AND, even if you load a file containing these words it should auto color them in the color wanted.
I've downloaded a script before and learned how to do it, but is there a simple way to understand how the procedure is written? And how to make it check up words when you load a file into the editor.
Perhaps the easiest way would be to use a RichTextBox. If you use spaces as a delimiter, you can scan through the text in a loop and set the color as desired. That requies selecting the text with the SelStart and SelLength properties of the box, and setting the SelColor property.
Please remember to rate the posts and threads that you find useful.
How can something be both new and improved at the same time?
But I need it to change the color to let's say "Blue" when I write "Hello" and if I write "Hello there" only Hello should be colored in blue. Also if I have a text document that I open containing the sentence "Hello there" it should automaticly color the "Hello" word.
What you can do is watch for when the user types a space, and that would indicate that the word preceeding the cursor should be checked for coloring. When opening a document you would have to loop through the text. Depending on the specifics, you may be tweeking the code for awhile to get it to work.
Please remember to rate the posts and threads that you find useful.
How can something be both new and improved at the same time?
How can I make it check the word that I just wrote? It has to be something like Text.SelLength - 5 (if the word is 5 letters) when you press Space. Or how do you make it look back on what you just wrote? And make a .txt file containing the word to colorize.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.