The jEdit plugin based on MMT yields an IDE for MMT content.
This section is about the setup of the jEdit plugin. The functionality is described here
When running MMT for the first time, it will ask whether you want to setup the jEdit support. To do that, you have to install jEdit before you run MMT. Use the following instructions:
j
instead of \
, e.g., jwedge
.Utilities
menu, then Global Options
, then Text Area
on the left and change the Text font
on the right..mmt
, e.g., the ons in the MathHub/MMT/examples/source
folder produced during MMT setup.The MMT plugin depends on the following other jEdit plugins
During installation, MMT will try to automatically download and configure these so that normally no further steps are needed.
However, if something goes wrong, you can also install these plugins manually: click on the Plugins
menu, then Plugin Manager
, then click on the Install
tab, check the plugins you want to install and click Install
.
From the perspective of jEdit, the plugin consists of two parts:
mmt.jar
file in jEdit’s settings folder (~/.jedit/jars
on linux, <USER>AppData\Roaming\jEdit
on windows)Most of the time only the jar file has changed in MMT. In that case, it is enough to replace the jar and restart jEdit (or unload and reload the MMT plugin via jEdit’s plugin manager dialog).
To simplify this, the sbt file for MMT also provides the build target sbt jedit/install
to replace the old jars in the jEdit settings folder.
If more than the jar has changed or if a reinstall is desired, run mmt :jeditsetup
.
This will redo the installation procedure and overwrite all changes made by the original installation.
Configuration the MMT plugin is optional. But some steps may be useful.
JEDIT/plugins/info.kwarc.mmt.jedit.MMTPlugin/startup.msl
.It is advisable to make the following general jEdit configurations:
Abbreviations: Select the setting ‘expand abbreviations on space’ to activate the abbreviations that come with the plugin.
Parsing: Select the setting of the Sidekick plugin to automatically parse the buffer. This activates the parsing/type-checking of the MMT plugin and populates the SideKick tree and the ErrorList list. It is recommended to deactivate the menu option parse on key
in the area Auto parsing settings
, since parsing tends to defocus the text area making it difficult to type continuously.
Plugins: Browse the plugin manager and install all additional plugins you fancy. I recommend BufferTabs, CandyFolds, DirtyGutter, SuperAbbrevs, WhiteSpace, and XML.
Encoding: Set UTF-8 as your default encoding in the Options/Encodings.
While using jEdit, the current files are constantly checked and maintained in memory.
To store the results persistently, you need to build the files. This can be done by