This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
parsermonster_flags [2015/08/15 16:23] Mitch |
parsermonster_flags [2015/08/15 18:06] (current) Mitch [System Flags] |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| See [sys][] or is it, see [sys] [foo]? | See [sys][] or is it, see [sys] [foo]? | ||
| - | Predefined flags are stored in a hidden file named cx-Flags.txt. Since that file is read before any user-defined constants or user-defined tasks, none of the predefined flag names should be used for other purposes. | + | Predefined flags are stored in a hidden file named [[recognized_filetypes|cx-Flags.txt]]. Since that file is read before any user-defined constants or user-defined tasks, none of the predefined flag names should be used for other purposes. |
| - | Flags are read, set and tested by the same directives. The directives will create a local flag the first time it is used. For this reason, don't expect to use a predefined flag for your own purposes. | + | |
| To set a flag to True, use the < | To set a flag to True, use the < | ||
| To set a flag to False, use the < | To set a flag to False, use the < | ||
| + | |||
| + | Tip: if you plan to test multiple flags, you can save time by commenting out < | ||
| + | |||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | To disable **ReportHeaderNoPath**, | ||
| + | |||
| + | < | ||
| + | < | ||
| + | '< | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| < | < | ||
| Line 54: | Line 70: | ||
| ===== System Flags ===== | ===== System Flags ===== | ||
| - | [sys]: Presumably, all flags are system flags. | + | These flags operate independently of their inclusion in a [[constantfiles|cx-file]]. Applications that don't ship with predefined constants will still recognize |
| + | ^ Name ^ Purpose ^ | ||
| + | | AdHoc | Allows custom code to run before, during and after the major [[parsermonsterloops|loops]] | | ||
| + | | AutoRun | Set to true if [[autorun|autorun.task]] is detected during startup | | ||
| + | | AutoRun2 | Set to true if [[autorun|autorun2.task]] is detected during startup | | ||
| ===== Undocumented Flags ===== | ===== Undocumented Flags ===== | ||
| These flags have been implemented and will be documented, eventually. | These flags have been implemented and will be documented, eventually. | ||