How can i make different colors in a richtextbox.
I want everything inside /* and */ be green.
Example:
/* hello there
Everything inside, will be green
lalala */
I want all public be blue
public void() /* Its java :p */
i want void, int, string, boolean and final be blue too.
public boolean() {
I want = * + - ( ) [ ] { } 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 ; if, to be green
Example 1:
public int test = 3123;
Example 2:
public void testing() {
if(blablablabla) {
client.string.test[]
test = 5 * 7 - 3 + 4; //this will be green too. Just at same line ;)
}
everything after // (at same line) will be green
But i dont know how to make it :S
Everything over is java, and java codes will be made in the richtextbox.
- Marius