TSQLHighlighter component
PlusMemo Help Send comments on this topic.
TSQLHighlighter component

Glossary Item Box

 


Unit

SQLHilit

 

Declaration (partial)

type

    TCustomExtHighlighter = class(TPlusHighlighter);

    TSQLHighlighter = class(TCustomExtHighlighter);

 

 

Description

TSQLHighlighter is a non-visual component to dynamically highlight the text of a TPlusMemo according to the SQL language.  You can set the highlighting properties of various elements and individual keywords at design time or at run time.

 

To use this component, place a TSQLHighlighter on a form or datamodule, set your TPlusMemo.Highlighter property to point to it, et voilà, SQL keywords are turned colored, underlined, bolded, as you want.

 

Key properties

CommentsA THighlightInfo object to control highlighting of SQL comments (/*...*/).
KeywordsOvr An object type property to control highlighting of individual keywords.
Numbers A THighlightInfo object to control highlighting of numbers.
Operators A THighlightInfo object to control highlighting of symbol delimiters (parenthesis, braces, single character operators, ...).
SQLKeywords A THighlightInfo object to control highlighting of all SQL keywords as a whole.
Strings THighlightInfo object to control highlighting of string constants ("..." and '....').
SubHighlighter TPlusHighighter object for further syntax highlighting, ex: urls within comments.