[CSDE L OGO] [CSSS L OGO] [UW LOGO]

Using Crimson Editor wth mle


Crimson Editor and mle

The Crimson Editor works very well as a front-end for mle on Windows machines. The editor is a general purpose text editor that has capabilities for (1) syntax highlighting, (2) user-defined tools and (3) execution of programs from within the editor.

This page provides information and extensions for using mle with the Crimson Editor. A number of configuration files are provided that provide syntax highlighting, and execution of mle programs from within the Crimson editor.

The editor is available for free (although a donation to its developer is appreciated).

Installation


Installation and configuration of the Crimson Editor for use with mle is easy. Here are the steps. Download and install the Crimson Editor on your Windows system. There are five small configuration files that must be installed to customize the editor for use with mle. I'll assume you installed the crimson editor in the default directory c:\program files\crimson editor:

  • extension.mle: This file defines the syntax files. It goes into c:\program files\crimson editor\link
  • mle.clr: This file defines the colors to use in syntax highlighting. It goes into c:\program files\crimson editor\schemes
  • mle.key: This file specifies the mle keywords for the editor. It goes into c:\program files\crimson editor\spec
  • mle.spc: This file specifies the mle language characteristics for the language. It goes into c:\program files\crimson editor\spec
  • mle.cmd: This file defines the mle commands available from within the editor. It goes into c:\program files\crimson editor\tools
  • The first time you run the editor, there are two steps to enable the highlighting and tools.

  • From the top menu select: View-->Set Colors. Then under the "Load Color Scheme" drop-down, select "Saved Color Scheme" and hit "Load". Select the file "mle.clr" and "Apply"
  • From the top menu select: Tools-->Load User Tools. "mle" should be an option. Select it.
  • Using the Editor

    The editor has many useful features for text editing, and you can either explore the menus or read the documentation that comes with the editor. Five new tools are added for working with mle.

  • Ctrl-1 -- runs the mle source code in the current window in non-verbose mode (the file is saved then mle [file])
  • Ctrl-2 -- runs the mle source code in the current window in verbose mode (the file is saved then mle -v [file])
  • Ctrl-3 -- gives a help message for the word under the cursor position (mle -h [word])
  • Ctrl-4 -- gives a help message for words that match that at the cursor position (mle -H [word])
  • Ctrl-5 -- parses the mle source code in the current window and reports errorsn (mle -p [file])


  • Send comments and bug reports to Darryl Holman