Generate/SecureFXsysicon.jpg  Terminal / Keyword Highlighting


This category only appears if VanDyke Software's SecureCRT® 5.0 (or newer) is also installed.

The Keyword Highlighting category of the Session Options dialog allows you to configure the keyword list used by the session.

Note: Using this option reduces output display performance. If the host's shell supports highlighting, that is the recommended way to highlight keywords.

List name

This option allows you to select (or create) a list of keywords that you want to be highlighted in the terminal window (the entire keyword will be highlighted). To create a new list of keywords, click the New... button. You will be prompted to enter a name for the new list. Click the Delete button to delete the currently selected list. The list will be deleted even if it is being used by other sessions.

Match style

This field displays the type of matching used by the keyword list.

Keywords group

This group allows you to add, modify, and remove keywords from the keyword list.

New keyword

Enter a word or regular expression and press the Enter key or Add (plus) button to add it to the list. If the match style is Whole words, keywords (including regular expressions) cannot contain spaces.

Regular expression

Check this box to indicate that the keyword is a regular expression. The following are examples of regular expressions:

   IPv4 address: \d*\.\d*\.\d*\.\d*

   IPv6 address: ([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4}

   Match everything after a keyword and an equal sign (e.g., “error=12345”): error=.*

Note: The regular expressions should use ECMAScript syntax.

Keyword list

This is an ordered list of keywords. Keywords are matched using the order in the list. As soon as a match is found, the keyword is highlighted. To reorder the list, select the keyword that you want to reposition and use the buttons to the right of the list to move the keyword up or down. Multiple keywords can be moved when the selection is contiguous.

When the match type is Whole words, the word delimiters for keyword highlighting are the following:

` ~!#$%^&*()+=:;<>,.?/\[]{}|'

Note: Word delimiters can be used in a regular expression.

Edit

Press this button to make changes to the selected keyword.

Remove

Press this button to remove the selected keyword(s).

Match case

Check this box to indicate that the case of all the keywords in the list should be matched.

Set Color…

Select one or more keywords in the list and press this button to set their color. The Color highlight style must be checked in the Session Options/Terminal/Keyword Highlighting/Advanced category in order to set the color for selected keywords.