richmondmathewson at gmail.com
Mon Aug 10 19:39:13 CEST 2015
The thing that emerges from my question is that to colour a word or
in a textField is a fiddly business and it would be nice (??????) if a
simpler way to do this were introduced.
This works very well:
put 1 into VOCABLE
repeat until word VOCABLE in fld "TEKST" is "finalSolution666"
put VOCABLE into fld "KOUNT"
if word VOCABLE of fld "TEKST" is "the" then
set the textColor of word VOCABLE of fld "TEKST" to red
add 1 to VOCABLE
but, because one cannot set the textColor of a word in a stringVariable
it is very slow with large texts because it has to work within the field.
More information about the use-livecode