# Editor Window

Description | Usage | See Also

## Description

The Editor window allows users to edit plain text and plugin files within Draco. This window allows for editing multiple files and text entries using a tabbed layout. Editor window tabs can be used not only for simple note taking to be saved with the worksheet, but also creating and editing Draco plugins.

## Usage

A screen capture of the Editor window appears below:
The editor window is a tabbed editor component, meaning multiple tabs can be kept open at once. In the open window displayed above, a Draco plugin is shown being edited. The user can switch between open documents by clicking on the requisite tabs. Any tab can be closed by simply clicking the small "X" button on each tab.
The bottom of each tab contains a status panel that displays the current syntax highlighting style, a save option, and the current position within the file. The syntax highlighting option allows the user to switch between no highlighting, which is appropriate for most any file, and Ruby highlighting, which is especially appropriate for Draco plugins. The Save with Worksheet checkbox enables saving the text being edited within the worksheet itself. This box should be checked for any notes or text that needs to be stored along with worksheet data. The L and C values accompanied by numbers specifies the current cursor position within the file.
The Save with Worksheet option also affects the name of the current text within its tab. Texts that are to be saved by the worksheet will display a user-editable name in the tab title. The name can be changed by clicking the Rename button in the Toolbar. If the Save with Worksheet item is unchecked, Draco assumes the user will take responsibility for saving the file separately from the worksheet. The tab will display the filename of the text in this situation, and the name is followed by an asterisk if the file has been modified.
Standard copying and pasting can be performed using the usual shortcut keys:

Control-C | Copy selected text
Control-X | Cut selected text
Control-V | Paste text

### The Toolbar

The Editor window is accompanied by the toolbar as appears below:
The toolbar provides most necessary editing functionality. The disk icons provide Save and Save As. The next three buttons provide Cut, Copy, and Paste editing functions. The two arrows provide Undo and Redo functions.
The spyglass opens the Find panel below the text.
The hash symbol is used to toggle comments in Ruby code. When editing a Draco plugin, for example, clicking the hash button on selected text will comment out the code if it is currently enabled. If the selected code is already commented, it will uncomment the code.
The final Rename button allows tabs that are marked to be saved with the worksheet to be renamed.

### Searching

When the spyglass button is clicked on the toolbar or, alternatively, the Find option is selected from the Edit Menu, the edit panel will appear below the text, as shown below:
To search for specific text within the editor, the text of interest can be entered into the search box. The Forward and Backward buttons allow searching forwards and backwards from the cursor position respectively. Match Case requires that the case of any resultant terms will match the case of the text entered into the search box. The Regex option enables searching via Java Regular Expressions. The small X button closes the search panel.

## See Also

Main Window Menu
Plugin Overview

Copyright © 2009 Approximatrix, LLC
Text licensed under the Creative Commons Attribution-Share Alike 3.0 License
DracoTM and the Approximatrix logo are trademarks of Approximatrix, LLC
Other trademarks are property of their respective owners