Highlight word
Allows you to quickly generate a trigger that highlights a word or phrase.

Highlight

Enter the word or phrase to be highlighted. If you have selected text in the output window before opening this dialog, this text will be automatically entered here.

Colour

Choose a custom colour from the combo box, or choose "Other ...".

Colour swatches

If a custom colour is selected, these will show what the custom foreground and background colours are.

If you have selected "Other ..." then you can click on the left-hand swatch to set the text colour, and the right-hand swatch to set the background colour.

Whole Word Only

If checked, this makes the trigger match only a whole word boundary. The difference is that if you highlight (say) "cat" then with "whole word only" checked it will only match "cat" on its own, however with it unchecked it would also match the first part of the word "catch".

Match Case

If checked, the trigger will only match the exact case shown, otherwise it will match upper or lower-case versions of the text.

OK

When you click OK, a trigger will be added to the world's trigger list. This trigger will be:


  • A regular expression (to match part of the line)

  • Sequence 90 (to fire before default triggers)

  • Keep evaluating (so other triggers will also match the line)

  • Repeat on same line (so multiple words on the same line will be highlighted)

  • Have empty "send" text

  • Set to change the selected text to the colour you specify

  • Group as "Highlighted Words"



See Also ...

Topics

DOC_aliases Aliases
DOC_defaults Default triggers/aliases/timers/macros/colours
DOC_starting Getting started
DOC_group Groups
DOC_plugins Plugins
DOC_regexp Regular Expressions
DOC_timers Timers
DOC_triggers Triggers

Command

CMD_ID_DISPLAY_HIGHLIGHTPHRASE HighlightWord (Highlight a word or phrase)

Functions

FNC_AddTrigger AddTrigger (Adds a trigger)
FNC_AddTriggerEx AddTriggerEx (Adds a trigger - extended arguments)
FNC_DeleteTemporaryTriggers DeleteTemporaryTriggers (Deletes all temporary triggers)
FNC_DeleteTrigger DeleteTrigger (Deletes a trigger)
FNC_DeleteTriggerGroup DeleteTriggerGroup (Deletes a group of triggers)
FNC_EnableTrigger EnableTrigger (Enables or disables a trigger)
FNC_EnableTriggerGroup EnableTriggerGroup (Enables/disables a group of triggers)
FNC_GetPluginTriggerInfo GetPluginTriggerInfo (Gets details about a named trigger for a specified plugin)
FNC_GetPluginTriggerList GetPluginTriggerList (Gets the list of triggers in a specified plugin)
FNC_GetTrigger GetTrigger (Gets details about a named trigger)
FNC_GetTriggerInfo GetTriggerInfo (Gets details about a named trigger)
FNC_GetTriggerList GetTriggerList (Gets the list of triggers)
FNC_GetTriggerOption GetTriggerOption (Gets the value of a named trigger option)
FNC_GetTriggerWildcard GetTriggerWildcard (Returns the contents of the specified wildcard for the named trigger)
FNC_IsTrigger IsTrigger (Tests to see if a trigger exists)
FNC_SetTriggerOption SetTriggerOption (Sets the value of a named trigger option)

(Help topic: dialog=IDD_HIGHLIGHT)

DOC_contents Documentation contents page