Home / code / bbcode

BBCode

BBCode or Bulletin Board Code is a lightweight markup language used to format posts in many message boards.
Usually tags in square brackets ( [ ] ). Who are later translated into HTML or XHTML.

Some messageboards that can work with BBCode: Ultimate Bulletin Board (UBB), phpBB, XMB forum2, vBulletin.

The TAGS

The tags are relative easy. They are like HTML, but square brackets ( [ ] ).

[b]bolded text[/b] -> bolded text
[i]italicized text[/i] -> italicized text
[u]underlined text[/u] -> underlined text
[s]strikethrough text[/s]-> strikethrough text

Links :
[url]https://www.webmaster2020.com[/url][ -> https://www.webmaster2020.com
[url=https://www.webmaster2020.com]Web2020[/url] -> Web2020

To include a image link the path or the url between tags: [img]pics/example.png[/img]

quotes :
[quote]quoted text[/quote]
[quote="author"]quoted text[/quote]

Styles:
[style color="red"]Text in red[/style]
[style color=#FF0000]Text in red[/style]
[color=#FF0000]Text in red[/color]

-> Text in red

Lists:
[list]
[*]Entry A
[*]Entry B
[/list]

[list=1]
[*]Entry 1
[*]Entry 2
[/list]

  • Entry A
  • Entry B
  1. Entry 1
  2. Entry 2

Table:
[table]
[tr]
[td]cell 1[/td]
[td]cell 2[/td]
[/tr]
[tr]
[td]cell 3[/td]
[td]cell 4[/td]
[/tr]
[/table]

cell 1 cell 2
cell 3 cell 4

The exact implementation depends on the message board. But they are mostly similar.

 

TOP

Latest script:

 

Books: