Richmond.
I see, you wanted to use the literal word as a chunk expression. But you surely know this is not valid in LC, and will have to use the wordOffset or something similar so you can get an actual valid chunk. Craig -----Original Message----- From: Richmond <richmondmathew...@gmail.com> To: How to use LiveCode <use-livecode@lists.runrev.com> Sent: Mon, Aug 10, 2015 7:40 am Subject: Colouring words what is wrong with this: if line 5 of fld "WHAT" contains "only" then set the textColor of "only" in line 5 of fld "WHAT" to red end if ??? I would like to set certain phrases in a sentence to a different textColor to the other words . . . . . . should be dead easy. Richmond. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode