如果一个单词出现两次,如果突出显示为绿色,如果它出现三次,那么如果ti发生超过三次,则应该以红色突出显示,然后应突出显示橙色。可能吗。我使用以下代码如何更改我的代码
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
答案 0 :(得分:0)
要在不选择单词的情况下使用单词,请使用backColor属性:
set the backColor of char 23 to 27 of fld 1 to green