Macros and Profiles |
|
Much of the Editor's flexibility come from profiles, which are text files containing Editor commands. A profile is a specialized form of an Editor macro file. Some of the profiles supplied with the Editor provide specific editing features and run automatically at specific times. You can also define your own profiles and macros and run them at any time you want.
The standard Editor profiles are kept in the macros directory. You can edit these profiles directly, but if you change them incorrectly the behavior of the Editor may be affected. Instead, if you need to modify the behavior of the Editor, do so by defining new profiles. See Using Profiles to Modify Editor Behavior for more information.
The following types of profiles are provided with the Editor:
| xxx.lxs | This profile, if it exists,
runs whenever a file with filename typexxxis
saved, including autosaves. The Editor comes with predefined save macros for many programming languages. For example, the cpp.lxs profile runs whenever a C++ file with a cpp source type is saved. You can also use the same profile naming convention to create your own save profiles for files of other source types. |
| xxx.lxl | This profile, if it exists,
runs whenever a file with filename typexxxis
loaded or opened for editing. The Editor comes with predefined load macros for many programming languages. For example, the cpp.lxl profile runs whenever a C++ file with a cpp source type is loaded. You can also use the same profile naming convention to create your own load profiles for files of other source types. |
| profile.lx | This is a profile in which you can save your own customization commands. It is the last standard profile that is run before a file is opened, and its commands override the commands used in previous profiles. |
Using Profiles to Modify Editor Behavior Writing Macros for the Editor |
|