Colouring DListView lines word by word

Hi all.
I do not know how to go about doing this.
I have a DListView (which I will Paint later on and get rid of the default Derma look).
I want to colour each word uniquely. This is an example:

This guy managed to do it:

How would I go about doing this?
If anyone asks, this log script is called “gLogs”. I’m really not sure where it came from as the script was on a server I played on. It’s not the web based gLogs, either.