- BBCode
"BBCode" is an abbreviation for "Bulletin Board Code", the
lightweight markup language used to format posts in manymessage board s. It is also called forum codes. 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 amarkup language thatweb browser s understand, usuallyHTML orXHTML .Purpose
BBCode was devised to provide a safer, easier and more limited way of allowing users to format their messages. Programmer convenience was certainly another factor, as BBCode is very simple to implement.Fact|date=October 2007 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 ofHTML , ASP,PHP ,SQL and othermarkup language s andprogramming language s.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.
Many message boards include a
FAQ with information on how to use their own variants of BBCode. In addition, some bulletin board systems allow administrators to define their own custom BBCodes. This is usually done by asking them to specify the BBCode markup (utilizing variables/wildcards to indicate the user-customizable parts of the code) and then indicating the XHTML replacement which will be substituted for the BBCode.External links
* [http://www.phpbb.com/phpBB/faq.php?mode=bbcode BBCode guide] at
phpBB .com
* [http://bb.bbboy.net/man/BbCode.html BBCode quick reference]
* [https://addons.mozilla.org/en-US/firefox/addon/128 BBCode extension] forMozilla Firefox
* [https://addons.mozilla.org/es-ES/firefox/addon/491 BBCodeXtra extension] forMozilla Firefox
* [http://search.cpan.org/perldoc?HTML::BBCode HTML::BBCode perl module]
* [http://search.cpan.org/perldoc?HTML::BBReverse HTML::BBReverse perl module]
* [http://code.google.com/p/postmarkup/ Python BBCode implementation]
* [http://www.codeparser.net/Default.aspx Dotnet BBCode implementation]PHP Implementations
* [http://pecl.php.net/package/bbcode PECL (PHP extension) BBCode implementation] - with configurable C library
* [http://pear.php.net/package/HTML_BBCodeParser PEAR BBCode implementation]
* [http://bbcparser.recgr.com Recruiting Parser] - over 25 tags, bundled smilies and extras
* [http://www.way2web.net/php/bbcode2html.php BBcode2HTML] - Free & easy BBcode translation in PHP
* [http://www.christian-seiler.de/projekte/php/bbcode/index_en.html BBCode Parser Class] Free BBCode Parser Class written in PHPAuthoring Tools
* [http://corpocrat.com/2008/08/15/free-wysiwyg-bbcode-editor-in-javascript/ WYSIWYG BBCode Editor] - A Free BBCode Editor written in Javascript for PHP.
* [http://www.teamopolis.com/tools/bbcode-table-generator.aspx BBCode Table Generator Tool]
* [http://www.pawsoft.com/?p=fass/home Pawsoft Fass]
Wikimedia Foundation. 2010.