|Dorset holidays||Electronics & DIY||Family History||Hi-Fi History||Misc||Natural History||Wild Food||Walks|
|Contents||Index||About the instructions||About mailing list||Mailing list archive|
It is also possible to embed certain instructions in the files concerned. See Modewhen Options embedded in texts
At start up (or when modes are rescanned) StrongED searches all Modes (in alphabetical order of modename) for ModeWhen files which it collates in memory. When a new file is opened this internal list is consulted and the appropriate mode selected.
Each ModeWhen file is in four parts - but each part is optional. The first two parts are matched against the file name and file type before the file is loaded. The third part is a list of Named Match expressions used in the first two parts.
This is so that any unwanted matches in the Include section can be avoided. An example of this is the News ModeFile where StrongED's NewsMode file itself would be matched by one of the Include rules. So the Exclude section of the News mode reads:
Rules Exclude fff,**.!StrongED.Defaults.Modes.** fff,**.!StrED_cfg.UserPrefs.Modes.** End
After the file is loaded, the first 1Kb of it is searched for anything that matches the Match text. If a match is found, then that mode is used. If no Match is found, then the pre-selected mode (if any) will be used. If no mode has been pre-selected, then BaseMode is used.
You can place comment lines throughout the file, including inside the sections, by starting lines with "#".
Was this page helpful? Please email me and/or rate this page:
Top of page