Applies to
TOOPHighlighter component
Declaration
property ASMHighlight: THighlightInfo;
Description
This property is used to control the text formatting of assembler sections. Assembler sections begin with the keyword "asm" and ends with the keyword "end".
Assembler keywords within assembler sections are highlighted differently, through property KeywordsASM. Likewise, comments within assembler comments are highlighted like Pascal comments, and the same is true for numbers. Property ASMHighlight affects only text in assembler sections that is not an assembler keyword, a number or a comment.
You can change properties of ASMHighlight 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.
The default highlighting characteristics of ASMHighlight are
- plain style;
- transparent background;
- purple text color;
- default cursor.