BBCode

Introduction

BBCode or Bulletin Board Code is a lightweight markup language used to format posts in many message boards. The available tags are usually indicated by square brackets ([ ]) surrounding a keyword, and they are parsed by the message board system before being translated into a markup language that web browsers understand—usually HTML or XHTML.

The description of Kunena BBCode does not imply that these features exist or work in the same manner in other forums or vice versa.

Purpose

BBCode was devised 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 formatting, a side effect of which was that malformed HTML could disrupt the page's layout, or HTML could be used to run JavaScript leading to XSS attacks. 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. An alternative is a properly written HTML filter (many of which are freely available).

Although the basic tags of BBCode are similar, in most internet forum software there is currently no standards document for BBCode and there are consequently many incompatible variants. Some variants are case-sensitive while others are not. Some variants have tags which highlight the formatting of HTML, PHP, CSS and other markup languages and programming languages.

uKnowva's Knowledge Forum uses BBCode to provide excellent editing options to its users.

BBCode Tags

Available BBCode
BBCodeResult
[b]text[/b] text
[i]text[/i] text
[u]text[/u] text
[strike]text[/strike] text
Text[sub]subtext[/sub] Textsubtext
Text[sup]suptext[/sup] Textsuptext
[size=5]Text in size 5[/size] [size=4]four[/size] [size=3]three[/size] Text in size 5 four three
[color=#FF0000]coloured text[/color] [color=lime]Lime[/color] [color=green]Green[/color] coloured text[1] Lime Green[2]
[quote]text[/quote]

text

[quote="username"]text[/quote]

username wrote:

text

[code]Raw code[/code][3]

Raw code

[spoiler][/spoiler]

Warning: Spoiler! [ Click to expand ]

 

Text cannot be seen unless you click the "warning text"

[hide][/hide] Text cannot be seen unless user is logged-in
[hr] Draws a horizontal rule
[confidential]Text cannot be seen except by author, forum moderator or administrator[/confidential]

Confidential information:

Text cannot be seen except by author, forum moderator or administrator

[ul]
[li]listpoint 1[/li]
[li]listpoint 2[/li]
[/ul]
  • listpoint 1
  • listpoint 2
[ol]
[li]Item the first[/li]
[li]Item the second[/li]
[/ol]
  1. Item the first
  2. Item the second