doc: add trigger example to colorize URLs
parent
be9046741f
commit
bd06f0f60f
|
@ -3371,6 +3371,19 @@ string/string).
|
|||
[[trigger_examples]]
|
||||
==== Examples
|
||||
|
||||
[[trigger_example_url_color]]
|
||||
===== Color for URLs
|
||||
|
||||
Display URLs in green:
|
||||
|
||||
----
|
||||
/trigger add url_color modifier weechat_print "${tg_notify}" "==\S+://\S+==${color:green}$0${color:reset}=="
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
The simple regex used to detect URL may not catch well all URLs, but it is
|
||||
faster than a complex regex.
|
||||
|
||||
[[trigger_example_auto_pong]]
|
||||
===== Auto pong on ping queries
|
||||
|
||||
|
|
|
@ -3311,6 +3311,19 @@ string/string).
|
|||
[[trigger_examples]]
|
||||
==== Examples
|
||||
|
||||
[[trigger_example_url_color]]
|
||||
===== Color for URLs
|
||||
|
||||
Display URLs in green:
|
||||
|
||||
----
|
||||
/trigger add url_color modifier weechat_print "${tg_notify}" "==\S+://\S+==${color:green}$0${color:reset}=="
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
The simple regex used to detect URL may not catch well all URLs, but it is
|
||||
faster than a complex regex.
|
||||
|
||||
[[trigger_example_auto_pong]]
|
||||
===== Auto pong on ping queries
|
||||
|
||||
|
|
|
@ -3422,6 +3422,20 @@ reçue (type : chaîne/chaîne).
|
|||
[[trigger_examples]]
|
||||
==== Exemples
|
||||
|
||||
[[trigger_example_url_color]]
|
||||
===== Couleur pour les URLs
|
||||
|
||||
Afficher les URLs en vert :
|
||||
|
||||
----
|
||||
/trigger add url_color modifier weechat_print "${tg_notify}" "==\S+://\S+==${color:green}$0${color:reset}=="
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
La simple expression régulière utilisée pour détecter l'URL peut ne pas capturer
|
||||
correctement toutes les URLs, mais elle est plus rapide qu'une expression
|
||||
régulière complexe.
|
||||
|
||||
[[trigger_example_auto_pong]]
|
||||
===== Pong auto sur les requêtes ping
|
||||
|
||||
|
|
|
@ -3444,6 +3444,19 @@ string/string).
|
|||
[[trigger_examples]]
|
||||
==== Examples
|
||||
|
||||
[[trigger_example_url_color]]
|
||||
===== Color for URLs
|
||||
|
||||
Display URLs in green:
|
||||
|
||||
----
|
||||
/trigger add url_color modifier weechat_print "${tg_notify}" "==\S+://\S+==${color:green}$0${color:reset}=="
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
The simple regex used to detect URL may not catch well all URLs, but it is
|
||||
faster than a complex regex.
|
||||
|
||||
[[trigger_example_auto_pong]]
|
||||
===== Auto pong on ping queries
|
||||
|
||||
|
|
|
@ -3315,6 +3315,19 @@ string/string).
|
|||
[[trigger_examples]]
|
||||
==== Examples
|
||||
|
||||
[[trigger_example_url_color]]
|
||||
===== Color for URLs
|
||||
|
||||
Display URLs in green:
|
||||
|
||||
----
|
||||
/trigger add url_color modifier weechat_print "${tg_notify}" "==\S+://\S+==${color:green}$0${color:reset}=="
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
The simple regex used to detect URL may not catch well all URLs, but it is
|
||||
faster than a complex regex.
|
||||
|
||||
[[trigger_example_auto_pong]]
|
||||
===== Auto pong on ping queries
|
||||
|
||||
|
|
|
@ -3336,6 +3336,19 @@ string/string).
|
|||
[[trigger_examples]]
|
||||
==== Examples
|
||||
|
||||
[[trigger_example_url_color]]
|
||||
===== Color for URLs
|
||||
|
||||
Display URLs in green:
|
||||
|
||||
----
|
||||
/trigger add url_color modifier weechat_print "${tg_notify}" "==\S+://\S+==${color:green}$0${color:reset}=="
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
The simple regex used to detect URL may not catch well all URLs, but it is
|
||||
faster than a complex regex.
|
||||
|
||||
[[trigger_example_auto_pong]]
|
||||
===== Auto pong on ping queries
|
||||
|
||||
|
|
Loading…
Reference in New Issue