FIL Editor


General

The FIL / Text editor is now displayed in a separate "dialog" window, thus it is larger and the user has more control over its size then the previous version of this editor. In addition, it is possible to specify the user of a different editor. To do this, select the Utilities / Define Text Editor menu option. From the dialog that appears, specify use of the default editor or specify a path to an editor on the computer.

Default Text Editor

generate/fil_editor.gif

The FIL Editor is an editor designed for the FIL language. It color codes keywords, as well as comments, strings, and numbers, and it also offers automatic indentation. Every option file can have a companion FIL file, although this is by no means required. While the FIL file is actually a separate file, via this built-in editor it appears to be a part of the option file (which in some sense it is, as it 'belongs' to the current option file - it will be processed along with the current option file). Following is a description of the menus of the FIL editor.

generate/fil_menu01.gif

Since this editor is for editing an option file's companion FIL file, you are not allowed to perform any File functions as you would in a normal editor - there is one and only one file to be opened, it is saved under a name dictated by the name of the option file, and is saved at the time the option file is saved.

generate/fil_menu02.gif

The items in the Edit menu operate as would be expected in a text editor.

generate/fil_menu03.gif

Find and Replace work as one might expect, Goto brings up the following dialog:

generate/fil_menu04.gif

You can perform three types of goto's.

TWARN = MACRO/
    $$ THIS MACRO GETS THE TOTAL NUMBER OF POST WARNINGS FROM THE POST
    $$ AND INCREMENTS IT BY ONE AND RESETS THE POSTS WITH THE NEW VALUE.
    TW = POSTF(1,1,1932)            $$ GET THE TOTAL # OF POST WARNINGS
    TW = TW + 1                        $$ ADD 1
    DMY = POSTF(2,1,1932,TW)            $$ RESET THE TOTAL # OF POST WARNINGS
TERMAC
CIMFIL/ON,COOLNT
     $$ THROW THE COOLNT COMMANDS AWAY
CIMFIL/OFF

generate/fil_menu05.jpg

File Filters... is used to associate formatting rules with a particular type of file (based on the file's extension). Selecting this option brings up the following dialog:

generate/fil_menu06.gif

Within this dialog you can add/remove file type definitions (or filters). For example, FIL files are defined as all files that fit the pattern *.f?? (such as uncx01.f02). Color coding rules are provided via an external file called Keywords_FIL.txt, which simply lists all the keywords in the FIL language. Indentation rules are also furnished via an external file called IndentRules_FIL.txt. This file has a slightly more complicated format, but basically identifies such things as if/then/else blocks and how they should be indented. For each of these two rules (color coding and indentation), there are three options (for each file type):

The Properties... menu item (of the Tools menu) brings up the Properties dialog in which you can specify colors, font, indentation amount, etc.:

generate/fil_menu07.gif

The items within this dialog are fairly self-explanatory. The Line after column item turns on/off a vertical red line at a particular column - this is useful for languages such as FIL that have a line length limitation (70 characters). A vertical line serves as a reminder not to type past column 70 (unless it is a comment). The # lines per scroll specifies how many lines are scrolled for one mouse scroll-wheel turn, or one click on either scrollbar scroll arrow. You can also specify whether or not you want a backup file made every time a file is opened.

Most of the items in the menu have a shortcut located on the editor's toolbar. This toolbar is show below:

generate/fil_menu08.gif

 

--------------------------------------------------------------------------------------------------------------------------

generate/optfile.gif Option File Generator Help

Copyright (c) 2005, All Rights Reserved,

 Austin N.C., 505 East Huntland Drive, Suite 480

Austin, TX 78752
www.austinnc.com