From bd06f0f60f8c3f5ab883df9cb876fe29715055b3 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 2 Mar 2014 18:59:57 +0100 Subject: doc: add trigger example to colorize URLs --- doc/ja/weechat_user.ja.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'doc/ja') 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 -- cgit v1.2.3