moai.DoMethod(id, "SetColor", start, end, color)
start
and end
coordinates. The color has to be passed as a 24-bit RGB value.
To change the color that should be used for newly inserted text, use the Texteditor.Color attribute instead.
Note that this feature requires Texteditor.Styled to be set to True
.