The SIMION SL™ Toolkit (version 1.2.1.0 - 2004-11-09)

SL Editor Tutorial: Editing SIMION Text Files

--Instructions on configuring and using the VIM and Emacs text editors to effectively edit SIMION SL, PRG, and GEM files (e.g. syntax highlighting).

Introduction

This document describes how to configure the VIM and Emacs (XEmacs and GNU) text editors to syntax highlight and perform other functions on SIMION-related files.

Attention SL Toolkit Users: The copy of VIM included in the SL Toolkit 1.2 and above is preconfigured with the plugins. You may skip or skip the installation sections of this document. To use the SL Editor, just right click on a SIMION file (PRG, SL, GEM, or PATXT) in Windows Explorer and select "SIMION: Edit".

Below is an example of VIM editing a SIMION "GEM" geometry file:

Although you could edit files in Windows Notepad or use the antiquated SIMION "EDY" editor, an alternate text editor offers the following benefits:

We'll first describe how to configure VIM and then do the same for Emacs.

Downloading

The "Editor Files for SIMION" contain customization files for the VIM and Emacs text editors. The files may be downloaded here: simion-editor.zip. They are also also bundled with the SIMION SL Toolkit v. 1.2 and above.

The VIM Editor - Installation

The steps for setting up VIM to work with SIMION files are provided below:

The VIM Editor - Optional Tweaks

Here some optional customizations you might want to make.

The Emacs Editor - Installation

Now, we'll look at how to configure Emacs. Below is a screenshot of XEmacs editing an SL program:

The steps for setting up Emacs to work with SIMION files are provided below:

The Emacs Editor - Optional Tweaks

Here some optional customizations you might want to make.

Conclusion

The manner to configure the VIM and Emacs text editors to syntax highlight and edit SIMION-related text files has been discussed. Similar methods could be used when setting up other text editors.


Special thanks is given to Robert Malek, who developed the VIM plugins. The VIM plugins are (c) 2004 Robert Malek and are made available by permission on the simion.com website and packaged with SL.

--David Manura, Scientific Instrument Services, Inc. 2004-04.

Please report any errors/comments regarding this web page:
  Name/e-mail/phone (optional):
 
The SIMION SL Toolkit™ and documentation is (c) 2003-2004 Scientific Instrument Services, Inc. All Rights Reserved.