Unit
ExtHilit
Declaration (partial)
type
THighlightInfo = class(TPersistent)
published
property AltFont : Boolean;
property Style : TFontStyles;
property Background: TColor;
property Foreground: TColor;
property Cursor : TCursor;
end;
Description
THighlightInfo is a class used to describe the highlighting attributes of categories of keywords or sections in language highlighters used with TPlusMemo. For example, TUrlHighlighter has such a THighlightInfo property for each of its category of urls it can highlight (web urls, email addresses, ftp urls). Likewise, TOOPHighlighter has a THighlightInfo to describe the attributes of Pascal keywords, another one for comments.
Property AltFont specifies if the category uses the Alternate font attribute.
Property Style corresponds to the font style used by the category.
Property Background corresponds to the background color of the category. A value of clNone means transparent background.
Property Foreground corresponds to the text color of the category. A value of clNone means the default color of TPlusMemo text.
Property Cursor represents the mouse cursor to display when it is over text in the corresponding category. A value of crDefault means no change relative to the cursor defined by TPlusMemo.