How do you change the color of text in scripts

How do you change the color of the text in the script in python? Also what are the different colored texts for?

Need answer

Do you mean syntax highlighting in the text editor? If so press the button with the “AB” on it in the text editor header.

If you mean in a GUI, you’ll need to do something like

# Actually Changes the Text Color, fill in red, green, blue
BGL.glColor3f(red, green, blue)

# Draws the text (assuming everything else is set up properly)
BGL.glRasterPos2i(x, y)
Draw.Text("My Text")