BBCode

BBCode

"BBCode" is an abbreviation for "Bulletin Board Code", the lightweight markup language used to format posts in many message boards. 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 a markup language that web browsers understand, usually HTML or XHTML.

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 of HTML, ASP, 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.

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] for Mozilla Firefox
* [https://addons.mozilla.org/es-ES/firefox/addon/491 BBCodeXtra extension] for Mozilla 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 PHP

Authoring 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.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • bbCode — (аббр. от англ. Bulletin Board Code)  язык разметки, используемый для форматирования сообщений на многих электронных досках объявлений (BBS) и форумах. Для форматирования текста используются теги, подобные тегам HTML, но, в отличие от… …   Википедия

  • BBcode — est l abréviation de Bulletin Board Code, inventé à travers le langage PHP pour éviter les injections HTML, utilisé pour mettre en forme les messages de forums de discussion. Par abus de langage, les éléments du BBCode sont appelés balises. Le… …   Wikipédia en Français

  • BbCode — est l abréviation de Bulletin Board Code, inventé à travers le langage PHP pour éviter les injections HTML, utilisé pour mettre en forme les messages de forums de discussion. Par abus de langage, les éléments du BBCode sont appelés balises. Le… …   Wikipédia en Français

  • Bbcode — est l abréviation de Bulletin Board Code, inventé à travers le langage PHP pour éviter les injections HTML, utilisé pour mettre en forme les messages de forums de discussion. Par abus de langage, les éléments du BBCode sont appelés balises. Le… …   Wikipédia en Français

  • BBCode — (аббр. от англ. Bulletin Board Code) язык разметки, используемый для форматирования сообщений на многих (BBS) и форумах. Для форматирования текста используются теги, подобные тегам движок форума производит разбор текста и преобразование его в… …   Википедия

  • BBcode — (von engl. Bulletin Board Code) ist eine sehr eng an HTML angelehnte, jedoch vereinfachte Auszeichnungssprache, die bevorzugt für die Erstellung von Beiträgen in Webforen (engl. Bulletin Boards) eingesetzt wird. BBCode ist nicht offiziell… …   Deutsch Wikipedia

  • Bbcode — (von engl. Bulletin Board Code) ist eine sehr eng an HTML angelehnte, jedoch vereinfachte Auszeichnungssprache, die bevorzugt für die Erstellung von Beiträgen in Webforen (engl. Bulletin Boards) eingesetzt wird. BBCode ist nicht offiziell… …   Deutsch Wikipedia

  • BBCode — est l abréviation de Bulletin Board Code, inventé à travers le langage PHP pour éviter les injections HTML et SQL, utilisé pour mettre en forme les messages de forums de discussion. Par abus de langage, les éléments du BBCode sont appelés balises …   Wikipédia en Français

  • BbCode — (аббр. от англ. Bulletin Board Code) язык разметки, используемый для форматирования сообщений на многих электронных досках объявлений (BBS) и форумах. Для форматирования текста используются теги, подобные тегам HTML, но, в отличие от них,… …   Википедия

  • BBCode — (von engl. Bulletin Board Code) ist eine an HTML angelehnte, jedoch vereinfachte Auszeichnungssprache, die bevorzugt für die Erstellung von Beiträgen in Webforen (engl. Bulletin Boards) eingesetzt wird. BBCode ist nicht offiziell reglementiert,… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”