From 139ea0e7abd2a6f9cc208c156bf9df019a375fef Mon Sep 17 00:00:00 2001 From: b Date: Mon, 24 Feb 2025 22:02:09 +0000 Subject: [PATCH] add BB tags [zi], [fi] --- bsta.css | 10 ++++++++++ bsta_lib.1.pm | 12 ++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/bsta.css b/bsta.css index da52470..666e84c 100644 --- a/bsta.css +++ b/bsta.css @@ -460,6 +460,16 @@ form.goto { border-color: #000000!important; color: #000000!important; } +.zi +{ + border-color: #08B000!important; + color: #08B000!important; +} +.fi +{ + border-color: #AA22BB!important; + color: #AA22BB!important; +} .hv.ni:hover { diff --git a/bsta_lib.1.pm b/bsta_lib.1.pm index 90e6e44..ce8dd21 100644 --- a/bsta_lib.1.pm +++ b/bsta_lib.1.pm @@ -2,7 +2,7 @@ # # Library of functions # -# Copyright (C) 2016, 2017, 2019, 2020, 2022, 2023, 2024 Balthasar Szczepański +# Copyright (C) 2016, 2017, 2019, 2020, 2022, 2023, 2024, 2025 Balthasar Szczepański # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -172,6 +172,10 @@ use constant tags_bbcode => { '/br' => '[/color]', 'po' => '[color=#FF8800]', '/po' => '[/color]', + 'zi' => '[color=#08B000]', + '/zi' => '[/color]', + 'fi' => '[color=#AA22BB]', + '/fi' => '[/color]', 'url' => '[url]', 'url=' => '[url=', 'url/=' => ']', @@ -204,6 +208,10 @@ use constant tags_html => { '/br' => '', 'po' => '', '/po' => '', + 'zi' => '', + '/zi' => '', + 'fi' => '', + '/fi' => '', 'url' => '',#think: how to add selfincluding? 'url=' => '', @@ -335,7 +343,7 @@ sub bbtree { $new_ind = $ind.'.'.$bbtree{$ind.'.count'}; } - if($tag_name =~ /^(fq|tq|quote|br|ni|po|url|i|list|\*)$/) { + if($tag_name =~ /^(fq|tq|quote|br|ni|po|zi|fi||url|i|list|\*)$/) { if ($tag_end ne '') { if ( ($tag_name ne $bbtree{$ind.'.name'}) || -- 2.30.2