If you want use ingame color, you should do like this.
If you want red color, press Ctrl + r. Then, it shows like this :
You can use it like this :
The "+w+" is for turning the text to it's normal color.
It will show like this:
"Name"If you use Notepad++, you can use it like this :
That's it.
Anyway, the color code :
Red = ~r~ or +r+
Blue = ~b~ or +b+
Yellow = ~y~ or +y+
Green = ~g~ or +g+
White = ~w~ or +w+
There is some other code but this five is the one I used the most.