Syntax Menu


It is vital that you select an appropriate syntax to tell MMEdit which device you are connecting to. There are differences in the methods used to transfer files between the PC an d the different devices. 
Having the wrong device syntax selected will not go well.

MMEdit scans the data folder for *.tkn files during start-up. Any files found will be considered syntax files and the menu list will be populated. The files are not checked for validity until chosen.

You can add your own syntax files. If you edit one of the existing files, it will be overwritten with the next MMEdit update so if you don't want that to happen, save it under a different name.

The first two lines of the syntax file hold the version and then the options that vary between devices.

For the CMM2 we have:
5.05.03
mmdeviceoptions 01010113

The version number is not usually relevant.
The device options are:

 MMOdos = VAL(MID$(MMdeviceOptions$,1,1))         ' 1 = use DOS exe to run
 MMOshowfiles = VAL(MID$(MMdeviceOptions$,2,1))   ' 1 = has FILES command
 MMOdriveletter = VAL(MID$(MMdeviceOptions$,3,1)) ' 1 = drive A - Maximite
 MMOlfn = VAL(MID$(MMdeviceOptions$,4,1))         ' 1 = long file names OK
 MMOxmCurrent = VAL(MID$(MMdeviceOptions$,5,1))   ' 1 = XMODEM to/from memory
 MMOxmFile = VAL(MID$(MMdeviceOptions$,6,1))      ' 1 = XMODEM to/from files
 MMOlistALL = VAL(MID$(MMdeviceOptions$,7,1))     ' 1 = can use LIST ALL
 MMOautosave = VAL(MID$(MMdeviceOptions$,8,1))    ' 1 = AUTOSAVE ^Z, 2 = AUTOSAVE ^C, 0 = AUTO ^Z, 3 = AUTOSAVE fn$ F1/F2


After that, there are a number of long lines of keywords. The lists include some but not all parameters. What to include is a personal preference and should not be considered definitive.
The keywords determine the highlighting and also are used for the variable report. Currently the variable report uses a global list.

Currently, all lines of keywords are combined into one list so the line in which a keyword is found is not significant.
This may change in the future so, if you are creating your own syntax file, place true keywords in the first group and parameters in the second or subsequent groups.

Blank lines are OK in the syntax file and may help readability.

The list of *TKN files is created on startup so if any syntax files are added, they won't be found until next MMEdit start-up.
The *TKN files are found in the Data folder, the location of which can be found from Help/About

 

Last edited: 14 May, 2021