MEdit - Programmable Text Editor


Profiles

This page lists the profiles that are ready to use.

Do you have your own profile that you think is interesting? Send it to me and I'll put it on this page.

empty

You've already seen the empty profile in the tutorial.
It contains only one command: New file, which opens new window for editing.
The only reason for this profile to exist is to give you a starting point to exercise and to create your own profiles, if you think that none of the others is good as a basis, but I'd rather suggest that you create your own profiles by cloning existing ones.

pro

The pro profile contains a bunch of commands that I think can be useful in editing generic text files. This is also a default profile.

Commands:

Most of the commands display some information in the auxiliary window.
In addition, there is a convenience menu bound to right-click on the main window, where all the commands are grouped according to their separators.

Note:
The syntax-highlighting engine is line-oriented and cannot operate on patters spanning more than one line of text. It can be inconvenient in environments where logical tokens can span many lines (for example block comments in C and C++), but I have not found it to be a real problem.
You can, of course, change the highlighting engine to fit your particular needs. This is exactly what "programmable editor" means.

Note:
The syntax highlighting engine is based on regular expressions. If you define many complicated rules for pattern matching (like in the cpp profile), then be aware that full syntax rescan can take some time, especially with bigger files.
On my machine, scanning a file that has more than thousand lines can take a couple of seconds, and during that time MEdit seems to freeze.
During normal editing, only current line is taken for analysis and this is always done on-the-fly and as an idle task, so that there are no delays that would influence the comfort of work.

Note:
There is a naming convention in the list of commands (of course, you do not have to follow it).

The last category are "option scripts". If you want to change some of the settings, open the script for editing (right-click on the list of commands followed by "Script" followed by "Edit script"). The settings are well commented, so you should find it easy to modify them, even if you are not a Tcl programmer.

cpp

The cpp profile was created for C and C++ programmers.
It contains all the commands that the pro profile has, and provides some in addition:

The cpp profile defines syntax rules so that the C++ code looks quite nice (at least in my opinion). Feel free to change the settings (colors, fonts, etc.).

The important thing in this profile is that the lines with #include directives are specially highlighted and have mouse bindings so that when you double-click on such a line, the appropriate header will open in a new window.

tcl

The tcl profile was created for Tcl programmers.
It contains all the commands that the pro profile has, and provides some in addition:

The tcl profile defines syntax rules for Tcl.

html

The html profile was created for editing HTML files.
It contains all the commands that the pro profile has, and provides some in addition:

The html profile defines syntax rules for HTML.

latex

The latex profile was created for editing LaTeX files.
It contains all the commands that the pro profile has and defines specific syntax rules for LaTeX.