$highlight » History » Version 18
Per Amundsen, 02/23/2023 01:41 PM
1 | 1 | Per Amundsen | _Added in 1.8.10_ |
---|---|---|---|
2 | |||
3 | *$highlight* |
||
4 | |||
5 | 3 | Per Amundsen | Returns [[$true]] if highlighting is turned on, otherwise returns [[$false]]. |
6 | |||
7 | 5 | Per Amundsen | ----------------------------------------------------------------------------- |
8 | 4 | Per Amundsen | |
9 | 1 | Per Amundsen | _Added in 1.9.3_ |
10 | |||
11 | *$highlight(N/text)* |
||
12 | |||
13 | 9 | Per Amundsen | Returns the Nth line in the [[highlights options]], or if text is specified, returns the properties for the highlight line that matches text. |
14 | 1 | Per Amundsen | |
15 | *Parameters* |
||
16 | |||
17 | 18 | Per Amundsen | table(ktable). |
18 | |*Parameter*|*Description*| |
||
19 | | N | The Nth highlight from the [[highlights options]], if N = 0, total number of highlight items is returned. | |
||
20 | | text | A text to match with a highlight. | |
||
21 | 1 | Per Amundsen | |
22 | *Properties* |
||
23 | |||
24 | 18 | Per Amundsen | table(ktable). |
25 | |*Property*|*Description*| |
||
26 | | .text | Highlight match text. | |
||
27 | | .color | Line color. | |
||
28 | | .rgbcolor | The [[$rgb<notextile>|</notextile>rgb]] color if set. *(AdiIRC only)* | |
||
29 | | .sound | "beep" or file name. | |
||
30 | | .flash | Flash times or 0 if flash is disabled. | |
||
31 | | .tip | Tip times or 0 if tip is disabled. | |
||
32 | | .message | Tip message. | |
||
33 | | .nicks | [[$true]] if match on nickname is enabled, otherwise [[$false]]. | |
||
34 | | .regex | [[$true]] if regex is enabled, otherwise [[$false]]. | |
||
35 | | .cs | [[$true]] case sensitive is enabled, otherwise [[$false]]. | |
||
36 | | .network | The network name to match, if any. *(AdiIRC only)* | |
||
37 | | .channel | The channel name to match, if any. *(AdiIRC only)* | |
||
38 | | .chans | The channel name to match, if any. | |
||
39 | | .rnick | The remote nick name to match, if any. *(AdiIRC only)* | |
||
40 | | .fontbold | Returns [[$true]] if Bold is checked, otherwise [[$false]]. *(AdiIRC only)* | |
||
41 | | .fontitalic | Returns [[$true]] if Italic is checked, otherwise [[$false]]. *(AdiIRC only)* | |
||
42 | | .fontunderline | Returns [[$true]] if Underline is checked, otherwise [[$false]]. *(AdiIRC only)* | |
||
43 | | .backcolor | The background color if set. *(AdiIRC only)* | |
||
44 | | .rgbbackcolor | The [[$rgb<notextile>|</notextile>rgb]] background color if set. *(AdiIRC only)* | |
||
45 | 11 | Per Amundsen | |
46 | *Example* |
||
47 | |||
48 | <pre> |
||
49 | ; Check if 'Word' is in the highlight list |
||
50 | //echo -ag Word is $iif($highlight(Word), a, not a )) in the highlight list |
||
51 | </pre> |