TCPPHighlighter.CPPKeywords property
PlusMemo Help Send comments on this topic.
TCPPHighlighter.CPPKeywords property

Glossary Item Box

 

Applies to

TCPPHighlighter component

 

Declaration

property CPPKeywords: THighlightInfo;

 

Description

This property is used to change the formatting of all C++ keywords together.  C++ keywords are the reserved words of the C++ language syntax, like char, const, class, if, else.

 

The default formatting characteristics for CPPKeywords are bold style, transparent background and default text color.

 

It is also possible to change the highlighting characteristic of each individual keyword at design time by way of property KeywordsOvr.  The individual keyword characteristics applied there are lost when making assignments to the corresponding CPPeywords properties. 

 

You can change properties of CPPKeywords 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.