AD Model Builder/Syntax Highlighting

From QERM Wiki
Jump to: navigation, search



TextPad Screenshot.jpg

TextPad allows for users to make their own syntax highlight files (*.syn). This certainly aids in reading and writing lots of ADMB code. Here is one such file: tpl.syn

1. Save the file anywhere on your computer.

2. Copy this file into 'system' directory for TextPad. for example (e.g. C:\Program Files\TextPad 5\system\)

3. In TextPad, go to Configure -> Preferences -> Document Classes -> ADMB

4. Configure your highlighting preferences

A sample screen shot is shown on the right.



jEditis an open source editor based on java. It's not perfect, but it has an enormous number of plugins, and it runs on Windows and Linux, which is why at least one QERM student chose it for editing ADMB code (and everything else, pretty much).

No instructions are available for compiling ADMB code from within jEdit, but I'm sure it can be done if you take the time to figure out how to use the Console plugin.

To implement ADMB syntax highlighting in jEdit, download the ADMB.xml file and save it in the folder C:\Documents and Settings\username\.jedit\modes\ or \home\username\.jedit\modes\.

In that same folder, look for a file called "catalog" and modify or newly create to include the following (the important line obviously is the one with "ADMB" in it):

<?xml version="1.0"?>
<!DOCTYPE MODES SYSTEM "catalog.dtd">

The sample screenshot at right shows the ADMB syntax highlighting along with the JDiff plugin, which is a convenient way to show differences between two files.

Crimson Editor, Emacs, Vim, and ConTEXT Editor

ADMB syntax files and information on these editors (as well as jEdit) is available here:

See also

AD Model Builder

Personal tools