The Magician Editor¶
Magician includes an integrated editor that has been designed to facilitate editing Magik files as well as other text files. Like other editors, Magician allows you to perform file management functions. The following functions are available under the File menu on the Smallworld Magician 2000 menu bar:
| Menu command | Shortcut | Icon | Description |
|---|---|---|---|
| New | File | Ctrl + N | Creates a new file. | |
| Open | File | Ctrl + O | Opens an existing file. | |
| Save | File | Ctrl + S | Saves the current file. | |
| Save As | File | N/A | N/A | Saves the current file under another name. |
| Close | File | Ctrl + F4 | Closes the current file. | |
| Reopen File | N/A | N/A | Reopens a recently opened file. |
When you open a file, the text of the file will appear in the Magician Editor window on the right side of the Project window. The Project Explorer will appear in a window on the left. If you opened a Magik file, the Code Explorer will appear in a window below the Project Explorer.
The text of the file will be parsed by syntax. Each element will be given a different color (as indicated in your Syntax Highlighting Preferences).
You may open multiple files. Each file will appear under a different tab in the Magician Editor window.
The editor shares many features with the Magik Prompt window, including:
- Project Explorer integration to facilitate project management.
- Standard Windows editing key support, including unlimited Undo.
- Configurable keystrokes to speed up editing.
- Auto correct text to correct typographical errors.
- User definable syntax highlighting
- User definable code templates to facilitate writing new code.
The editor also includes the following unique features:
- Integrated Class Browser to quickly jump to different methods within a file
- The Code Explorer displays additional information about the current Magik file.
- User definable bookmarks for easy navigation.
- Drag-and-drop text from any Windows-compliant application.
- Standard Windows search and replace functionality.
- Magik Prompt integration via choices under the Project menu
