Opening Magik editor
In this section, you will learn how to open an editor for Magik files. You will also learn
about some basic Magik editor features.
- Expand as_environment_manager source folder and select the file as_environment_manager.magik.
You can open as_environment_manager.magik in Magik editor by double clicking on it.
Usually you can open Magik editor for Magik files, types, methods and fields by simply double
clicking on them. For example, to open the editor directly on the method new() defined in
as_environment_manager.magik, expand the file in the Product Explorer and double click on
the method.
- Notice the syntax highlighting. Different kinds of elements in the Magik source are
rendered in unique colors. Examples of Magik source elements that are rendered differently are:
- Regular comments
- Keywords
- Strings

- Look at the Outline view. It displays an outline of the Magik file including the package
declaration, fields, types and methods. The Outline view uses icons to annotate Magik elements.

- In the Outline view, select different elements and note that they are displayed in a whole
file view in the editor. The Outline view selection now contains a range indicator on the vertical
ruler on the left border of Magik editor that indicates the range of the selected element.

Magik views
Magik editor

Magik Outline View
Magik Editor Preferences