0
如何突出显示绿色的单词,如果它出现两次,并且出现三次,那么它应该以红色突出显示,如果ti出现超过三次,则应该用颜色橙色。可能吗。我使用下面的代码我如何更改我的代码如何在livecode中突出显示单词
on mouseUp
put the field "f1" into sss
repeat for each word ass in sss
if ass contains shalu then
--put tmp into 0
add 1 to tmp
--answer "answer found"
end if
end repeat
answer tmp
if tmp >2 then
answer "more than two"
else
answer"only two times"
hilight "shalu"
end if
end mouseUp