|
IDL Interface Guide: Setting IDL Preferences |
|
This tab allows you to specify settings for the built-in IDL Editor and control the way IDL compiles files loaded in editor windows. On Microsoft Windows systems, this tab also allows you to specify syntax-highlighting and other editor features.
| Note Some preference settings may be desensitized. See Unavailable Preferences for details. |
Select the Backup on Save / Make backup copy of source file check box to cause IDL to create a backup of the original file when saving a file in an IDL editor window.
This control sets the value of the IDL_WDE_EDIT_BACKUP preference (Windows) and the IDL_MDE_EDIT_BACKUP preference (UNIX). For more information, see IDL Preferences.
On Microsoft Windows systems, you can choose to use syntax highlighting in IDL editor windows. If syntax highlighting is turned on, IDL statements are displayed in different colors. Select the Enable colored syntax checkbox to enable syntax highlighting. This control sets the value of the IDL_WDE_EDIT_CHROMACODE preference. For more information, see IDL Preferences.
If you want IDL to open the source file for a program that generates an error in an IDL editor window, select the Enable Open on debug checkbox. This control sets the value of the IDL_WDE_EDIT_OPEN_ON_DEBUG preference. For more information, see IDL Preferences.
Select the Ask to save changes before compiling radio button if you would like to save changes when you compile a program in an IDL editor window. This is the default.
Select the Automatically save changes before compiling radio button if you do not want to be prompted each time you compile, but do want to save the changes.
Select the Compile from memory (don't save before compile) radio button if you do not want to save files before compiling them.
| Note You can override your default selection by selecting the appropriate menu item from the Run menu. |
This control sets the value of the IDL_WDE_EDIT_COMPILE_OPTION preference (Windows) and the IDL_MDE_EDIT_COMPILE_OPTION preference (UNIX). For more information, see IDL Preferences.
You can specify the width of the white space to be used when you press the Tab key in an IDL editor window. Enter a number in the Number of spaces to indent for each tab field to specify the width of the indent to be used. This control sets the value of the IDL_WDE_EDIT_TAB_WIDTH preference. For more information, see IDL Preferences.
If you want the IDL editor to insert a tab character (ASCII 9) when you press the Tab key, select the Use tabs radio button. If you want IDL to insert the specified number of space characters (ASCII 32) when you press the Tab key, select the Use spaces radio button. This control sets the value of the IDL_WDE_EDIT_TAB_ENABLE preference. For more information, see IDL Preferences.
If you have selected the Use spaces radio button, you have the option to convert tab characters to spaces when the file is saved by selecting the Convert tabs to spaces on save checkbox. This control sets the value of the IDL_WDE_EDIT_TAB_SP_ON_SAVE preference. For more information, see IDL Preferences.
Use this section to select the colors that will be used in the IDL editor when syntax highlighting is enabled. To set colors, select a type of IDL statement from the scrolling listbox at left, then select the foreground and background colors for that type of statement.
These controls set the values of the IDL_WDE_EDIT_BCOLOR_* and IDL_WDE_EDIT_FCOLOR_* preferences. For more information, see IDL_WDE_EDIT_[B|F]COLOR_*.
IDL Online Help (March 06, 2007)