text color part 2

Mark Wieder mwieder at ahsoftware.net
Tue Nov 22 19:54:39 EST 2011


John-

If you can get by without setting the background color, try using the
htmlText property of the field, something like this:

on mouseUp
  local tText
  local tStrReplace

  put the htmlText of field "Original" into tStrReplace
  put "<font color=" & quote & "red" & quote & ">" \
    & field "SearchField" &\
    & "</font>" into tStrReplace
  replace field "SearchField" with tStrReplace in tText
  set the htmlText of field "Results" to tText
end mouseUp

-- 
-Mark Wieder
 mwieder at ahsoftware.net





More information about the use-livecode mailing list