To try your own code, submit something with the input box below.

Raw input: "T[/color]h[[i]i[color:ff0000]s [b]is[/b] [u]a[/color][/u] te[/i]s[b]t."

Output: "T[/color]h[is is a test."


Usage:

Mark off text to be formatted with tags like this:
[b]bold[/b]
[i]italic[/i]
[u]underline[/u]

If you try to close a [b] tag when there is none open, the BBCode should be ignored. (So, "[/b]Te[b]st[/b]" would come up as "[/b]Test".) If you don't close your tags, they'll be cleaned up at the end of the input.

You can also choose a font's color using hexadecimal RGB values, or a few presets (red, green, blue, yellow, purple, black, grey and white). Format:
[color:red]red[/color]
[color:ff00ff]magenta??![/color]

Each color (red, green, blue) has a pair of numbers; they are: RRGGBB. You can input numbers from 0-f (in order of value: 0123456789abcdef).



source