I got it to work....
The [code] tag is pretty close. Take a look at how it works in sub UBBCode
in ubb_library.pl. The line I added looks like this:
$ThePost =~ s/([TAB])(.+?)([/TAB])/
size="$TextSize">$2
/isg;
There's a corresponding line in EditUBBConvert that reverses it back to
[tab]...[/tab] when the user edits his post:
$EditThis =~ s/(
size=".+?">?)(.+?)(
)/[TAB]$2[/TAB]/isg;
Thanks to b0b at
www.b0b.com for the help.