Right now the BBCode translator in TTX supports the following...
Bold
Italics
Underline
Code
Smaller Text
URL
Image
Here's how to add the following...
Bigger Text
[big] [/big]
Subscript Text
[sub] [/sub]
Superscript Text
[sup] [/sup]
In
TTXMarkup.pm...
$buff =~ s/\[(\/?)(u|b|i|code|small|big|sub|sup)]/<$1$2>/gi;
and
$buff =~ s/\[(\/?)(u|b|i|code|small|big|sub|sup)]//gi;
Now the system will recognize and handle the new BBCodes.
Modify the BBCode editor in both newticket.html and ticket.html templates by adding these three new buttons.
<input alt="Bigger" title="Bigger" tabindex="-1" type=submit style="margin: 3px; font-size: small; width: 33px; height: 23px; font-weight: normal; text-decoration: none; font-family: Times, serif;" value=big onclick="markup('[big]', '[/big]', document.forms.newticket.problem); return false;">
<input alt="Subscript" title="Subscript" tabindex="-1" type=submit style="margin: 3px; font-size: small; width: 33px; height: 23px; font-weight: normal; text-decoration: none; font-family: Times, serif;" value=sub onclick="markup('[sub]', '[/sub]', document.forms.newticket.problem); return false;">
<input alt="Superscript" title="Superscript" tabindex="-1" type=submit style="margin: 3px; font-size: small; width: 33px; height: 23px; font-weight: normal; text-decoration: none; font-family: Times, serif;" value=sup onclick="markup('[sup]', '[/sup]', document.forms.newticket.problem); return false;">
Don't forget to modify your markuphelp.html template also. (Currently it's also missing the help item for "small" text)
The possibilities are endless. Anything that has a corresponding HTML tag is most easily added.