Syntax: #highlight {colour} {<text to highlight>} [group_name]
Description: Every part of string, coming from the MUD and matches <text to highlight> will be
highlighted by the <colour>.
ATTENTION ! In the JMC 3.* highlights don’t highlight the whole string. Its highlights only matched potion of it. For example, #highlight {red} {massacre} will highlight only word “massacre” in the “Dragon massacre you” by the red color. To highlight whole string< use %0-%9 symbols as a wildcards: #highlight {red} {%0 massacre %1}.
The value of the <colour> can be one of the following:
- reverse, bold, blink, faint, italic, or a number from 1 to 8
- the numbers represent colours 1 through 8 in the palette.
You can use the colour names and the combination of names within to declaration. For instance, you can specify {red, bold}.
Valid Colour names are as follows:
red, blue, cyan, green, yellow, magenta, white, grey, black, brown, charcoal, light red, light blue, light cyan, light magenta, light green, b red, b blue, b cyan, b green, b yellow, b magenta, b white, b grey, b black, b brown, b charcoal, b light red, b light blue, b light cyan, b light magenta, b light green, bold, faint, blink, italic, reverse.
Example:
#highlight {red} {hits you very hard} {common}
When someone hits you very hard the text "hits you very hard" will be highlighted in red. Creates in group named “common”
If you want to highlight the whole string, and not just the pattern text, use the %0-%9 variables to substitute changeable parts of the pattern string:
#highlight {yellow} {%0 gives you %1 coins%2}
Now, when someone gives coins to you, you will see it highlighted yellow.
See also: #unhighlight #substitute ANSI colors dialog JMC commands groups #group