Editor Windows
Use Editor windows to display, view, and edit source code files. You can have multiple files open at any time. Each code file opens in a separate Editor window (FIG. 152).
FIG. 152 Editor Windows
CAUTION: Do not attempt to open .lib or .syc f iles for editing in the Editor window. Doing so could cause program failure.
NetLinx Studio supports many programming functions via the Editor windows:
- Drag-and-drop any supported file type from Explorer into the Editor window to open that file in a new Editor window.
- Drag-and-drop selected text to another Editor window (at the cursor location), or to another location within the same Editor window.
- Editor windows are movable and re-sizable. Use the options in the Window menu to arrange (cascade or tile) multiple windows.
- Use the New Window option in the Window menu to open the same code file in multiple Editor windows. With this feature you to can and edit different locations in a large code file.
- Right-click anywhere within an Editor window to open the Editor window context menu.
- Select text and press the Tab key to indent a block of text. Use Shift + Tab to remove the indentation.
- Right-click on any line referring to an Include (*.axi) file within the Editor Windows to open the Source File Context Menu with the additional option to Open Include File. This option opens the associated Include file in a new Editor window.
NetLinx Studio features a Code Wizard that steps you through the process of generating several different types of code. See the
Using the Code Wizard section on page 88.
Setting Editor Preferences
Use the options on the Editor - Display and Indention tab of the Preferences dialog to set default display-oriented preferences for the Editor windows. See
page 189
for details.
Use the options on the Editor - Highlighting and Fonts tab of the Preferences dialog to set default syntax highlighting preferences for the Editor windows. See
page 190
for details.
NOTE: Use the Import Preferences and Export Preferences options in the Tools menu to import/export the current Editor preferences, as they are defined in the Editor tabs of the Preferences dialog. See the
Import and Export Preferences (*epx f iles) section on
page 197
for details.