Field Precision title

Integrating the ConText text editor

A good text editor is one of the most useful tools you can install on your computer, particularly if you do a lot of technical work. If you are using a simple utility like NotePad, you owe it to yourself to move up. The good news is that you can get a high-quality editor for free. ConTEXT is available at: http://www.contexteditor.org/. Here are some improvements you can make after you install the program.

Add syntax highlighting for Field Precision programs
We have prepared ConTEXT syntax highlighting files for all our program input scripts. Syntax highlighting does more than improve the appearance. You can immediately spot spelling mistakes and invalid commands. Here's how to add the feature.

1. Click this link to download the ConTEXT syntax file: Syxtax definitions.

2. Unzip it in the directory
\program files\context\highlighters

to create the following files

  • fieldp_ain.chl (Aether input scripts)
  • fieldp_cdf.chl (MagWinder input scripts)
  • fieldp_dst.chl (GenDist input scripts)
  • fieldp_ein.chl (EStat and EMP input scripts)
  • fieldp_gin.chl (Magnum and GamBet input scripts)
  • fieldp_hin.chl (HiPhi input scripts)
  • fieldp_min.chl (Mesh and MetaMesh input scripts)
  • fieldp_nin.chl (Nelson input scripts)
  • fieldp_oin.chl (OmniTrak)
  • fieldp_pin.chl (PerMag and Pulse input scripts)
  • fieldp_rin.chl (RFE2 and RFE3 input scripts)
  • fieldp_scr.chl (General postprocessor analysis scripts)
  • fieldp_tin.chl (Trak and TDiff input scripts)
  • fieldp_win.chl (HeatWave and WaveSim input scripts)

3. Highlighting will automatically be applied to files with the listed suffixes the next time you run ConTEXT. You can edit the chl files if you want to change colors or other properties.

Add spell checking

One of the few things that ConTEXT lacks is spell checking. Here's how to integrate the Aspell program.

1) Go to http://aspell.net/win32/.

2) Download the "Full installer" to a temporary directory and also download a dictionary for the language of your choice.

3) Run the program installer (e.g., Aspell-0-50-3-3-Setup.exe) first and then run the dictionary installer (e.g., Aspell-en-0.50-2-3.exe).

4) Run ConTEXT and click on "Options/Environmental options". Activate the "Execute keys" tab then click on "Add". Type "txt" in the dialog box and click OK.

5) Pick an activation key like F9. Browse for or type in the program name

"C:\Program Files\Aspell\bin\aspell.exe"

in the "Execute" box. Enter "check --dont-backup %n" in the "Parameters" box.

6) Go to the "General" tab in "Environmental options". Check the boxes "Detect file changes by other applications" and "Automatically update changed files".

7) You're ready to go. The next time you are editing a .txt file, press F9 to activate spell checking.

8) As set up, the F9 command operates only on files with the suffix "txt". You can add other file suffixes like "html" or "tex".

9) For information on Aspell's other features, see the manual at

http://aspell.net/man-html/index.html

ALT TITLE
CAPTION


LINKS