diff options
Diffstat (limited to 'doc/ja/weechat_user.ja.txt')
-rw-r--r-- | doc/ja/weechat_user.ja.txt | 13 |
1 files changed, 13 insertions, 0 deletions
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 |