Ok, I am making a basic text editor in JQuery...where there is a textarea to people to write their codes. I want to make a syntax highlighting feature, my own one, without the use of plugins.


Well, how can I make some words which are being typed in the textarea in different colors? Hmmm, I can put some words in an array, then, when the user will type some words in this array in the textarea, these words will be in another color... Can you help me?