Chapter 22. MeVisLab Advanced Text Editor (MATE)

Table of Contents

22.1. What is MATE?
22.2. MATE Text Editor User Interface
22.3. Menu Bar
22.4. Module Menu
22.5. Outline Area
22.6. Edit Area
22.7. Preferences
22.8. MATE as Python Debugger
22.9. MATE as Module Help Editor
22.9.1. Context Menus
22.9.2. Formatting
22.9.3. How it works
22.10. MATE Shortcuts on Windows and Linux/KDE
22.11. Shortcuts on Mac OS X

22.1. What is MATE?

MATE is the internal text editor for MeVisLab. It currently supports the three programming languages MDL, Python, and JavaScript, offering auto completion (with a list of suggestions), context-sensitive specific help, syntax highlighting and indentation.

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 22.9, “MATE as Module Help Editor”)

    • .mlab (MeVisLab network)

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

    • .script (MeVisLab MDL script)

  • .py (Python)

  • .js (JavaScript)

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 22.8, “MATE as Python Debugger”. The setting for separate processes can be changed, see Section 4.3.4, “Preferences — Supportive Programs”.