Untested.
In ubb_lib.cgi, change
$match++ if $_[0] =~ s/([color:)(S+?)(])(.+?)([/color])/<font color="$2" c>$4</font c>/isg;
$match++ if $_[0] =~ s/([center])(.+?)([/center])/<center>$2</center>/isg;
$match++ if $_[0] =~ s/( )(.+?)( )/<font size="$2" s>$4</font s>/isg;
$match++ if $_[0] =~ s/([font:)(.+?)(])(.+?)([/font])/<font face="$2" f>$4</font f>/isg;
to
$match++ if $_[0] =~ s/([color:)(S+?)(])(.+?)([/color])/<span style="color: $2;">$4</span>/isg;
$match++ if $_[0] =~ s/([center])(.+?)([/center])/<center>$2</center>/isg;
$match++ if $_[0] =~ s/( )(.+?)( )/<span style="font-size: $2px;">$4</span>/isg;
$match++ if $_[0] =~ s/([font:)(.+?)(])(.+?)([/font])/<span style="font-family: $2;">$4</span>/isg;
And in ubb_lib_posting.cgi, change
$match++ if $message =~ s/(<font color=")(S+)(" c>)(.+?)(</font c>)/[color:$2]$4[/color]/isg;
$match++ if $message =~ s/(<font size=")(.+?)(" s>)(.+?)(</font s>)/ $4 /isg;
$match++ if $message =~ s/(<font face=")(.+?)(" f>)(.+?)(</font f>)/[font:$2]$4[/font]/isg;
to
$match++ if $message =~ s/(<span style="color: )(.+?)(;">)(.+?)(</span>)/[color:$2]$4[/color]/isg;
$match++ if $message =~ s/(<span style="font-size: )(d{2}|d{1})(px;">)(.+?)(</span>)/ $4 /isg;
$match++ if $message =~ s/(<span style="font-family: )(.+?)(;">)(.+?)(</span>)/[font:$2]$4[/font]/isg;
A little note: Since I did it this way, sizes are from 0-99 (in px). Anything under about 8 is unreadable by most.
Codes are now:
RED
RED
14px size font
[font:Trebuchet Ms]Best. Font. Ever.[/font]
If this works for you, it'll give me an excuse to release a new version, which will include
![[Linked Image]](https://ubbdev.com/ubb/upload/00020028/colors.png)
for adding those common colors to a post.