Applies to
TOOPHighlighter component
Declaration
property KeywordsASM: THighlightInfo;
property KeywordsOOP: THighlightInfo;
Description
These properties are used to change the formatting of all assembler keywords or Object Pascal keywords. Assembler keywords are those words part of the instruction set of i86 processors. They are highlighted when inside of assembler sections, which are delimited with the asm and end keywords. Object Pascal keywords are the reserved words of the Delphi language syntax, like begin, end, class, uses.
The default formatting characteristics for KeywordsASM are bold style, yellow background and default text color. The ones for KeywordsOOP are bold style, transparent background and default text color.
It is also possible to change the highlighting characteristic of each individual keyword (assembler and Object Pascal ones) at design time by way of property KeywordsOvr. The individual keyword characteristics applied there are lost when making assignments to the corresponding KeywordsASM or KeywordsOOP properties.
You can change properties of KeywordsASM and KeywordsOOP at design time or at run time. If you make assignments to them at run time, call TPlusMemo.ReApplyKeywords for the change to take effect immediately for existing text. Otherwise, only subsequent editing operations will take account of the new highlighting attributes. When making changes at design time, a confirmation dialog will ask if it is correct to reset the individual keyword characteristics if some of them have been set.