go to the Preferences panel (under the Edit menu).. go to "Script Editor" (the 5th item in the list on the left side of the prefs) check out the "when editing scripts:"