[Home] [Downloads] [Search] [Help/forum]

Highlight word

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


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.


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.


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 ...


Default triggers/aliases/timers/macros/colours
Getting started
Regular Expressions


(HighlightWord) Highlight a word or phrase


(AddTrigger) Adds a trigger
(AddTriggerEx) Adds a trigger - extended arguments
(DeleteTemporaryTriggers) Deletes all temporary triggers
(DeleteTrigger) Deletes a trigger
(DeleteTriggerGroup) Deletes a group of triggers
(EnableTrigger) Enables or disables a trigger
(EnableTriggerGroup) Enables/disables a group of triggers
(GetPluginTriggerInfo) Gets details about a named trigger for a specified plugin
(GetPluginTriggerList) Gets the list of triggers in a specified plugin
(GetTrigger) Gets details about a named trigger
(GetTriggerInfo) Gets details about a named trigger
(GetTriggerList) Gets the list of triggers
(GetTriggerOption) Gets the value of a named trigger option
(GetTriggerWildcard) Returns the contents of the specified wildcard for the named trigger
(IsTrigger) Tests to see if a trigger exists
(SetTriggerOption) Sets the value of a named trigger option
(StopEvaluatingTriggers) Stops trigger evaluation

(Help topic: dialog=IDD_HIGHLIGHT)

Documentation contents page

Search ...

Enter a search string to find matching documentation.

Search for:   

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]