I have made some code in the past to check through text to find color codes that will change the color of the text. Ex:
Drawing this:
Hello my name&b is john
would give this as a result when drawn: Hello my name is john
but "is john" would be in blue since i used the &b color code. I am basically imitating ansi but for java.
Now I would like to wrap the text exactly like LibGDX's BitMapFont.drawWrapped(...)
but still use the color codes. Anyone know how to do this? I would probobly be able to figure it out eventually but I just wanted to know if there was a better way than mine.