Chapter 24. MATE

Table of Contents

24.1. What is MATE?
24.2. Text Editor User Interface
24.3. Menu Bar
24.4. Module Menu
24.5. Outline Area
24.6. Edit Area
24.7. Preferences
24.8. Python Debugger
24.9. Module Help Editor
24.9.1. Context Menus
24.9.2. Formatting
24.9.3. How it works
24.10. Session Management
24.11. GUI Editor
24.12. Scripting
24.13. Shortcuts on Windows and Linux
24.14. Shortcuts on Mac OS X

24.1. What is MATE?

MATE is the internal text editor for MeVisLab. MATE is an acronym that stands for MeVisLab Advanced Text Editor.

MATE supports the programming languages MDL, Python, and JavaScript, offering auto completion (with a list of suggestions), context-sensitive specific help, syntax highlighting, and indentation.

It also supports HTML, CSS, and XML with simple syntax highlighting.

Additionally, MATE has a built-in debugger for Python scripting, a GUI editor for module panels, and functions as an editor for help files for modules (.mhelp).

For .mhelp, HTML, CSS, and XML, the editor checks the spelling of written text using hunspell.

Besides all this built-in functionality, MATE offers a scripting API to configure MATE on startup by user written Python scripting, as well as adding new features to MATE's GUI by writing Python user scripts, similar to Chapter 20, User Scripts

MATE also offers direct access to a module's panel and automatic panel, and related files via the Module menu.

For quick scripting, a scripting console is available.

The following file types are supported:

  • MDL files, namely

    • .dat (MeVisLab license files written in MDL)

    • .def (MeVisLab module definition)

    • .mhelp (MeVisLab module help file, see Section 24.9, “Module Help Editor”)

    • .mlab (MeVisLab network)

    • .prefs (MeVisLab preferences file, for packages or other purposes)

    • .script (MeVisLab MDL script)

  • .py (Python)

  • .js (JavaScript)

  • .html (HTML)

  • .css (Cascading Style Sheets)

  • .xml (Extensible Markup Language)

Open MATE via FileShow Integrated Text Editor (to start it without files) or FileOpen File in Integrated Text Editor (to start it with a file dialog for selecting a file).

MATE is also used as editor for source code by default (can be changed in the Preferences, see Section 4.3.4, “Preferences — Supportive Programs”). For example

  • for Related Files in the context menu of a module, when selecting one of the possibly available .def, .script, .py, or .js files.

  • when clicking a link to a license .dat file or a module .def file in the Debug Output of MeVisLab.

By default, MATE runs in a process separate from MeVisLab. This especially allows using it for Python debugging, see Section 24.8, “Python Debugger”. The setting for separate processes can be changed, see Section 4.3.4, “Preferences — Supportive Programs”.