Supported BB codes

Release 1.1 - ...

The following BB codes are supported by the BBEncode and BBDecode vipers.

Code Description
b Bold text
i Italic text
u Underlined text
quote Quoted text. Use the default parameter for attribution
code Source code.
color Sets the font colour.
size Sets the font size in % of normal size.
font

Sets font family, size and weight.

No longer supported as of Release 1.1. [font] tags will simply be dropped from the output.

center Centers the text on the page
align Aligns the text. Specify alignment in the default parameter: left, right or center
img Displays an image. Use the inner text of the tag to specify the image location
email Displays a mailto: link. Use either the default parameter or the inner text to specify the email address. When the default parameter is used, the inner text will be displayed as the link text.
url Displays an http:// link. Use either the default parameter or the inner text to specify the web address. When the default parameter is used, the inner text will be displayed as the link text.
list Displays an ordered or unordered list. Use the default parameter to specify the numeral to use for ordered lists: 1, a, A, i, I. Leave empty for an unordered list.
* List item. Has no closing tag: the list item ends at the next [*] or the next [/list]

The parser outputs the following css classes.

Tag class Suggested style
quote (div).bb-quote
code (pre).bb-code
image (img).bb-image
email (a).bb-email
url (a).bb-url
list (ul).bb-list-unordered
list=... (ol).bb-list-ordered
list=1 (ol).bb-list-ordered-d {list-style-type: decimal}
list=i (ol).bb-list-ordered-lr {list-style-type: lower-roman}
list=I (ol).bb-list-ordered-ur {list-style-type: upper-roman}
list=a (ol).bb-list-ordered-la {list-style-type: lower-alpha}
list=A (ol).bb-list-ordered-ua {list-style-type: upper-alpha}
* (li).bb-listitem