
The Compiling Options dialog is used to control some options for running scripts and templates. For more information about compiling, see Running Templates and Scripts. The Compiling Options dialog can be accessed by clicking the 'Tools > Options...' menu item and selecting 'Compiling'.
The Compile Options group controls how both scripts and templates are run. If the Show Warnings toggle is enabled, any warnings generated during compilation will be displayed in the Output tab of the Output Window. If the toggle is disabled, no warnings will be displayed. If the Auto Show Output Panel toggle is enabled and a script or template calls the 'Printf' function to display data, the Output tab of the Output Window will automatically be displayed. If this toggle is disabled, the Output Window will not automatically be shown but can be accessed by the 'View > Output' menu option.
By default, when a script or template is loaded in 010 Editor it is displayed in the Floating Tab Group (see Using File Tabs) for more information. Scripts and templates can also be loaded in the main tab group by enabling the Main Interface toggle.
The Directories group controls the source directories for scripts and templates plus allows adding additional include directories. The Includes field contains a list of all directories to be searched when a file is included using the #include command in a template or script (see the Includes help topic for more information). Enter all directories to be searched separated by spaces in the Includes field. If a directory contains spaces, place double quotes around the directory in the field. Clicking the Browse button with the '+' symbol will allow adding a directory to the list using a standard directory select dialog.
The Script Directory field lists the default location where scripts are assumed to exist on disk (this is used for the ($SCRIPTDIR) variable in the Script Options). Similarly, the Template Directory field lists the default directory where templates are stored (this is equivalent to the ($TEMPLATEDIR) variable in the Template Options). If either the Script Directory or Template Directory is modified, you must physically move the script or template files to the new location otherwise you may get a 'file not found' error when attempting to run a file.
Click the Reset button to reset all options to their original values.
|