AD Model Builder/Syntax Highlighting

From QERM Wiki
(Difference between revisions)
Jump to: navigation, search
(added information and ADMB syntax file links for jedit and other editors)
m (fixed internal link based on sage advice from Eli: use the command, ADMB.xml)
Line 25: Line 25:
 
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.
 
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 [http://wiki.cbr.washington.edu/qerm/index.php/Image:ADMB.xml ADMB.xml] file and save it in the folder C:\Documents and Settings\username\.jedit\modes\ or \home\username\.jedit\modes\.
+
To implement ADMB syntax highlighting in jEdit, download the [[media: ADMB.xml| 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):
 
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):

Revision as of 23:13, 2 December 2008

Contents

TextPad

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.

jEdit

JEdit.PNG


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">
<MODES>
<MODE NAME="ADMB" FILE="ADMB.xml" FILE_NAME_GLOB="*.tpl" />
</MODES>


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 and ConTEXT Editor

ADMB syntax files and information on these two editors is available here: http://admb-project.org/community/tutorials-and-examples


See also

AD Model Builder

Personal tools