Could you post an example please? I am really no good at Jscript
[Sorry for Double Post]
Ok, I finished the part with the blue keywords
Problem is, if I do a text that has one of the keywords in it, it turns that blue, example:
[c=12]int[/c] ;
i =ran[c=12]do[/c]m(1-10); // not real..
[c=12]switch[/c]
{
[c=12]case[/c] 1:
pr[c=12]int[/c]f ("the number is 1");
[c=12]break[/c];
[c=12]case[/c] 2:
printf ("dfh");
[c=12]break[/c];
[c=12]default[/c]:
[c=12]printf[/c] ("it's not 1 or 2!");
[c=12]break[/c];
}
Any way to stop it from doing like:
ran[c=12]do[/c]m?
Do I, like, change this
sMessage = sMessage.replace(/do/gi,"[c=12]do[/c]");
to like
sMessage = sMessage.replace(/do /gi,"[c=12]do[/c]");
and add a space after the first do, so it makes sure it's not part of current text?
-Paril