Opening a Maple editor

In this section, you will learn how to open an editor for Maple files. You will also learn about some of the basic Maple editor features.

  1. You can easily open Maple editor. Expand the recently created package and select the Maple file (.maple). You can open Maple file in the Maple editor by double clicking on it. In general you can open a Maple editor for files with extension .maple by simply double clicking on them.
  2. To demonstrate syntax highlighting feature of the Maple Editor, we will explore ready Maple package. Different kinds of elements in the Maple source are rendered in unique colors.  Examples of Maple source elements that are rendered differently are:
    2. Names
    3. Numbers
    4. Keywords (module, proc etc.)
    5. Strings
    6. Tasks (TODO, FIXME)

    Syntax highlighting of the Maple Editor

  3. Look at the Outline view. It displays an outline of the Maple file including the modules declaration, procedures declarations, local and export procedures and modules etc. The Outline view uses icons to annotate Maple elements. For example, icons indicate whether a Maple module is export (Maple Code - export module), or local (Maple Code - local module);
    You can find more about the Outline Icons on the Icons page.

    Maple Outline view
  4. Toggle the Toggle Type button to explore outline in Script or Package state. You can read more about the Maple Outline in Working with Maple Code / Outline section.

    Maple Outline view - Package State Maple Outline view - Script State
  5. In the Outline view, select different elements and note that they are again displayed in a whole file view in the editor. The Outline view selection now contains a location indicator on the vertical ruler on the left border of the Maple editor that indicates the location of the selected element.

    Range indicator in Maple Outline View