Keywords editor
PlusMemo Help Send comments on this topic.
Keywords editor

Glossary Item Box

 

The keywords editor is a window used by the design time PlusMemo Package for editing keywords and start-stop keys.  It shows a grid with the keywords or start-stop key litteral values, plus the user interface elements to select their attributes.

 

When editing property TPlusMemo.Keywords or TExtHighlighter.Keywords, the window permits defining keywords and their attributes.  When editing property TPlusMemo.StartStopKeys or TExtHighlighter.StartStopKeys, the window enables the setting of start-stop keys and their attributes.  This window is also used to edit keyword attributes for some language highlighters.

 

 

Some of the user interface elements shown in the picture above are not available for certain keyword lists.  In the case of start-stop keys, the grid has two columns that show the start literal value on the left and stop literal value on the right.

 

To change the highlighting attributes for a keyword or start-stop key, select it in the grid and set the options in the group box below the grid.  You can select multiple keywords or start-stop keys and set their attributes simultaneously.

 

To add a new keyword definition, click button Add.  To insert a new keyword above the currently focused one, click button Insert.  To delete one of the keyword, select it and click button Delete.  You can select multiple keywords and operate on all of them at the same time.

 

 

Saving and loading keyword or start-stop key definitions

A File menu permits loading and saving keyword definitions from/to text files or binary files.  There are items under this menu that enable loading or saving the definitions into three different formats: 

 

List (text):

This is a text file where each line in the file represents one keyword or start-stop key.  The keyword consists of the complete line.  A vertical bar "|" is used to separate the start key from the stop key, when you are editing start-stop keys.

 

List and attributes (text):

This is a file in an ini file format, having a [Keywords] and/or [Sections] section.  The [Keyword] section is used when editing keywords, [Sections] is used when editing start-stop keys.

 

Each keyword or start-stop key is written on a line in the format

    YYY=p1,p2,p3,p4...

where YYY is the keyword (or start-stop key) and p1, p2, ...are parameters.

 

List and attributes (bin):  

This is a binary format similar to the one in dfm files, used for efficient run time loading of key definitions.  This format is compatible with ReadData/WriteData methods of key list objects.