home *** CD-ROM | disk | FTP | other *** search
- !!Script
- //Copyright ⌐ 1997-1998 - Modelworks Software
-
- /**
- @Tool: toggleShowLineNumbers~assign a hot key to this script to turn line numbers
- on and off.
- @EndTool:
- @Summary: toggleShowLineNumbers~turn line numbers on and off
- */
-
- function DoCommand()
- {
- var preferencesMapFile = getMapFile("Preferences");
- if (preferencesMapFile)
- {
- var lineNumberState = preferencesMapFile.lookup("Show Line Numbers");
- preferencesMapFile.setValue("Show Line Numbers", !lineNumberState);
-
- updatePreferences(); // Tell the IDE to update the runtime preferences
- }
- }
-
- !!/Script
-
-