BBCode
From Free net encyclopedia
BBCode is an abbreviation for Bulletin Board Code, the markup language used to format posts in many message boards. The available tags are usually indicated by rectangular brackets surrounding a keyword, and they are parsed by the message board system before being translated into a markup language the web browsers understands, usually HTML or XHTML.
BBCode was devised and put to use in order to provide a safer, easier and more limited way of allowing users to format their messages. Previously, many message boards allowed the users to include HTML, which could be used to break/imitate parts of the layout, or run JavaScript. Some implementations of BBCode have suffered problems related to the way they translate the BBCode into HTML, which could negate the security that was intended to be given by BBCode.
Although the basic tags of BBCode are similar in most internet forum software, there are many variants. Some variants require tags to be in the correct case whilst others are not case-sensitive. Some variants have tags which highlight HTML, PHP, SQL and other markup languages and programming languages.
BBCode tags
The following are the most common BBCode tags available to most modern message boards, and are displayed here with their HTML equivalents. However, it should be noted that the effect of these tags can be changed substantially, and the effect may not be identical on all sites using BBCode.
BBCode | HTML | Effect |
[b]bolded text[/b]
| <b>bolded text</b>
| bolded text |
[i]italicized text[/i]
| <i>italicized text</i>
| italicized text |
[u]underlined text[/u]
| <u>underlined text</u>
| underlined text |
[img]http://upload.wikimedia.org/wikipedia/
commons/thumb/6/63/Wikipedia-logo.png/
150px-Wikipedia-logo.png[/img]
| <img src="http://upload.wikimedia.org/wikipedia/
commons/thumb/6/63/Wikipedia-logo.png/
150px-Wikipedia-logo.png" />
| Image:Wikipedia-logo.png |
[url=http://wikipedia.org]Wikipedia[/url]
| <a href="http://wikipedia.org">Wikipedia</a>
| Wikipedia |
To quote:[quote]quoted text[/quote]
| To quote:<blockquote>quoted text</blockquote> (usually implemented in more advanced ways) | To quote:quoted text |
[code]monospaced text[/code]
| <pre>monospaced text</pre>
| monospaced text
|
To change text size: [size=9]Your Text[/size] (Can change number to change size, "12" is usually standard on message boards.) | To change text size: <font size="1">Your Text</font>
| To change text size: Your Text |
To change text color: [color=red]Red Text[/color]
or
[color=#FF0000]Red Text[/color] (Can use many different color names or hex codes.) | To change text color: <span style="color: #FF0000">Red Text</span>
| To change text color: Red Text |
Many message boards include a FAQ with information on how to use their own variants of BBCode.