summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/de/weechat_user.de.txt13
-rw-r--r--doc/en/weechat_user.en.txt13
-rw-r--r--doc/fr/weechat_user.fr.txt14
-rw-r--r--doc/it/weechat_user.it.txt13
-rw-r--r--doc/ja/weechat_user.ja.txt13
-rw-r--r--doc/pl/weechat_user.pl.txt13
6 files changed, 79 insertions, 0 deletions
diff --git a/doc/de/weechat_user.de.txt b/doc/de/weechat_user.de.txt
index 1e4cc69cd..61e6165dc 100644
--- a/doc/de/weechat_user.de.txt
+++ b/doc/de/weechat_user.de.txt
@@ -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
diff --git a/doc/en/weechat_user.en.txt b/doc/en/weechat_user.en.txt
index e86f6e4dd..d58772cd2 100644
--- a/doc/en/weechat_user.en.txt
+++ b/doc/en/weechat_user.en.txt
@@ -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
diff --git a/doc/fr/weechat_user.fr.txt b/doc/fr/weechat_user.fr.txt
index a2bf45736..d1a48039a 100644
--- a/doc/fr/weechat_user.fr.txt
+++ b/doc/fr/weechat_user.fr.txt
@@ -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
diff --git a/doc/it/weechat_user.it.txt b/doc/it/weechat_user.it.txt
index 49f28d8d9..1cecd56f6 100644
--- a/doc/it/weechat_user.it.txt
+++ b/doc/it/weechat_user.it.txt
@@ -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
diff --git a/doc/ja/weechat_user.ja.txt b/doc/ja/weechat_user.ja.txt
index d1a6e576e..b0d4463a6 100644
--- a/doc/ja/weechat_user.ja.txt
+++ b/doc/ja/weechat_user.ja.txt
@@ -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
diff --git a/doc/pl/weechat_user.pl.txt b/doc/pl/weechat_user.pl.txt
index 2cec905f9..cf642eeb9 100644
--- a/doc/pl/weechat_user.pl.txt
+++ b/doc/pl/weechat_user.pl.txt
@@ -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