Changing color of String based off text?
So I have a input box and an output box.
I was thinking about adding "codes" into the input box, that if you put them in, it would change the color of the text in the output box based off it. Now, that wouldn't be hard, except if they put 2 or more codes into it.
Example:
Say the code was <color=HexHere>Your Text </color>
and the user put this into the input box: <color=FF0000>Super Cool Text</color>
It would display as:
Super Cool Text
That wouldn't be hard. But if they did this:
<color=FF0000>Super </color><color=00FF00>Cool </color><color=0000FF>Text</color>
It would have to output like this:
Super Cool Text
The issue is I don't know how to modify the output's colors in strings like that. I know how to make it one solid color. But not multiple.
Edit:
I need to know how to get items out of the string between two various points. If someone could help me, that'd be nice.
