Remove highlighting from line

After running the following script, the display-dialog line is highlighted. I thought compiling the script would remove the highlighting but it doesn’t unless the script has been changed in some way (no matter how minor). Is there some way to force the script to compile even if unchanged or is there some other method to remove the highlighting? Thanks.

set a to 1
set b to 2
display dialog "This is a test" buttons "OK" cancel button 1 default button 1
set c to 3
set d to 4

You can hold down the option key and click recompile, either on the tool bar or the Script menu

Thanks Ed. That works great.

1 Like