BBCode or Bulletin Board Code is the lightweight markup language used to format posts on multiple message boards. Available tags are usually indicated by square brackets ([]) around keywords, and they are deciphered by the message board system before translating into a markup language that web browsers understand - usually HTML or XHTML.
BBCode was introduced in 1998 by the Ultimate Bulletin Board (UBB) bulletin board software that is implemented in Perl. In 2000 BBCode was used in phpBB - an internet forum system written in PHP as well as an XMB forum. vBulletin also uses BBCode.
Video BBCode
Tag
Maps BBCode
Implementation
BBCode is usually implemented by applying a series of string-replace regular strings to the input. Because regular expressions are limited in analyzing the text input structure, it has an artifact that any non-hierarchical BBCode input will be converted into non-hierarchical HTML is invalid without errors.
Applying traditional parsing techniques is complicated by ambiguity in markup, as in [quote = [b] text [/b] [/quote]
, where inputs can be interpreted as "text" quoted from someone called " [b ", or bold text" text "surrounded by" [quote = "and"
", ie "[quote = text ] ".
References
External links
- Any2Bb.com - Rich-text (and HTML) to BBCode online converter
- BBCode user guide
Source of the article : Wikipedia