BB Codes

  • [B], [I], [U], [S] - Bold, Italics, Underline, and Strike-through

    Makes the wrapped text bold, italic, underlined, or struck-through.

    Example:
    This is [B]bold[/B] text.
    This is [I]italic[/I] text.
    This is [U]underlined[/U] text.
    This is [S]struck-through[/S] text.
    Output:
    This is bold text.
    This is italic text.
    This is underlined text.
    This is struck-through text.
  • [COLOR=color], [FONT=name], [SIZE=size] - Text Color, Font, and Size

    Changes the color, font, or size of the wrapped text.

    Example:
    This is [COLOR=red]red[/COLOR] and [COLOR=#0000cc]blue[/COLOR] text.
    This is [FONT=Courier New]Courier New[/FONT] text.
    This is [SIZE=1]small[/SIZE] and [SIZE=7]big[/SIZE] text.
    Output:
    This is red and blue text.
    This is Courier New text.
    This is small and big text.
  • [URL], [EMAIL] - Linking

    Creates a link using the wrapped text as the target.

    Example:
    [URL]http://www.example.com[/URL]
    [EMAIL]example@example.com[/EMAIL]
    Output:
    http://www.example.com
    example@example.com
  • [URL=link], [EMAIL=address] - Linking (Advanced)

    Links the wrapped text to the specified web page or email address.

    Example:
    [URL=http://www.example.com]Go to example.com[/URL]
    [EMAIL=example@example.com]Email me[/EMAIL]
    Output:
    Go to example.com
    Email me
  • [USER=ID] - Profile Linking

    Links to a user's profile. This is generally inserted automatically when tagging a user.

    Example:
    [USER=1]User Name[/USER]
    Output:
    User Name
  • [IMG] - Image

    Display an image, using the wrapped text as the URL.

    Example:
    [IMG]https://www.joomla-support.ru/​styles/default​/xenforo/avatars/avatar_s.png[/IMG]
    Output:
    [​IMG]
  • [MEDIA=site] - Embedded Media

    Embeds media from approved sites into your message. It is recommended that you use the media button in the editor tool bar. Approved sites: Dailymotion; Facebook; Liveleak; Metacafe; Vimeo; YouTube;

    Example:
    [MEDIA=youtube]oHg5SJYRHA0[/MEDIA]
    Output:
    An embedded YouTube player would appear here.
  • [LIST] - Lists

    Displays a bulleted or numbered list.

    Example:
    [LIST]
    [*]Bullet 1
    [*]Bullet 2
    [/LIST]
    [LIST=1]
    [*]Entry 1
    [*]Entry 2
    [/LIST]
    Output:
    • Bullet 1
    • Bullet 2
    1. Entry 1
    2. Entry 2
  • [LEFT], [CENTER], [RIGHT] - Text Alignment

    Changes the alignment of the wrapped text.

    Example:
    [LEFT]Left-aligned[/LEFT]
    [CENTER]Center-aligned[/CENTER]
    [RIGHT]Right-aligned[/RIGHT]
    Output:
    Left-aligned​
    Center-aligned​
    Right-aligned​
  • [QUOTE] - Quoted Text

    Displays text that has been quoted from another source. You may also attribute the name of the source.

    Example:
    [QUOTE]Quoted text[/QUOTE]
    [QUOTE=A person]Something they said[/QUOTE]
    Output:
  • [SPOILER] - Text Containing Spoilers

    Hides text that may contain spoilers so that it must be clicked by the viewer to be seen.

    Example:
    [SPOILER]Simple spoiler[/SPOILER]
    [SPOILER=Spoiler Title]Spoiler with a title[/SPOILER]
    Output:
    Simple spoiler
    Spoiler with a title
  • [CODE], [PHP], [HTML] - Programming Code Display

    Displays text in one of several programming languages, highlighting the syntax where possible.

    Example:
    [CODE]General
    code[/CODE]
    [PHP]echo $hello . 'world';[/PHP]
    Output:
    Код (CODE):
    1. General
    2. code

    Код (PHP):
    1. echo $hello . 'world';
  • [INDENT] - Text Indent

    Indents the wrapped text. This can be nested for larger indentings.

    Example:
    Regular text
    [INDENT]Indented text
    [INDENT]More indented[/INDENT]
    [/INDENT]
    Output:
    Regular text
    Indented text
    More indented​
  • [PLAIN] - Plain Text

    Disables BB code translation on the wrapped text.

    Example:
    [PLAIN]This is not [B]bold[/B] text.[/PLAIN]
    Output:
    This is not [B]bold[/B] text.
  • [ATTACH] - Attachment Insertion

    Inserts an attachment at the specified point. If the attachment is an image, a thumbnail or full size version will be inserted. This will generally be inserted by clicking the appropriate button.

    Example:
    Thumbnail: [ATTACH]123[/ATTACH]
    Full Size: [ATTACH=full]123[/ATTACH]
    Output:
    The contents of the attachments would appear here.
  • [CUT=option] - Cut

    Прячет выбранный текст

    Example:
    [cut="Нажмите, чтобы открыть"] спрятанный текст [/cut]
    Output:
    Нажмите, чтобы открыть
  • [SUB] - Sub

    Поднять текст вверх

    Example:
    [sub]текст[/sub]
    Output:
    текст
  • [SUP] - Sup

    Поднять текст вверх 2

    Example:
    [sup]текст[/sup]
    Output:
    текст
  • [ini] - INI

    Вставка содержимого INI

    Example:
    [INI]
    TPL_PROTOSTAR_BACKGROUND_COLOR_DESC="Выберите цвет фона для фиксированных макетов. По умолчанию используется значение #F4F6F7"
    TPL_PROTOSTAR_BACKGROUND_COLOR_LABEL="Цвет фона"
    [/INI]
    Output:
    Код (ini):
    1. TPL_PROTOSTAR_BACKGROUND_COLOR_DESC="Выберите цвет фона для фиксированных макетов. По умолчанию используется значение #F4F6F7"
    2. TPL_PROTOSTAR_BACKGROUND_COLOR_LABEL="Цвет фона"
  • [js] - JS

    Вставка кода JavaScript

    Example:
    [JS]
    jQuery(window).resize(function() {
    jQuery('.best-products .product .product-name').equalHeights();
    }
    [/JS]
    Output:
    Код (javascript):
    1. jQuery(window).resize(function() {
    2.     jQuery('.best-products .product .product-name').equalHeights();
    3. }
  • [off] - OFF

    Оффтопик (не в тему)

    Example:
    [OFF]текст, который не относится к текущей теме[/OFF]
    Output:
    Оффтопик (не в тему) - жми сюда!
  • [php] - PHP

    Вставка PHP-кода

    Example:
    [PHP]
    public static function xenWrapperRules($tag, $parentClass)
    {
    switch ($tag['tag']) {
    case 'img':
    self::imgRules($parentClass);
    break;
    case 'php':
    case 'html':
    case 'code':

    self::phcRules($parentClass);
    break;
    }
    }
    [/PHP]
    Output:
    Код (PHP):
    1. public static function xenWrapperRules($tag, $parentClass)
    2.     {
    3.         switch ($tag['tag']) {
    4.             case 'img':
    5.                 self::imgRules($parentClass);
    6.                     break;
    7.             case 'php':
    8.             case 'html':
    9.             case 'code':
    10.  
    11.                 self::phcRules($parentClass);
    12.                     break;
    13.         }
    14.     }
  • [sql] - SQL

    Вставка кода SQL (MySQL)

    Example:
    [SQL]
    DROP TABLE IF EXISTS `#__admintools_acl`;
    CREATE TABLE `#__admintools_acl` (
    `user_id` bigint(20) unsigned NOT NULL,
    `permissions` mediumtext,
    PRIMARY KEY (`user_id`)
    ) ENGINE=MyISAM /*!40101 DEFAULT CHARSET=utf8 */;
    [/SQL]
    Output:
    Код (sql):
    1. DROP TABLE IF EXISTS `#__admintools_acl`;
    2. CREATE TABLE `#__admintools_acl` (
    3.   `user_id` BIGINT(20) UNSIGNED NOT NULL,
    4.   `permissions` mediumtext,
    5.   PRIMARY KEY (`user_id`)
    6. ) ENGINE=MyISAM /*!40101 DEFAULT CHARSET=utf8 */;
  • [xml] - XML

    Вставка кода XML

    Example:
    [XML]
    <?xml version="1.0" encoding="UTF-8"?>
    <extension version="3.1" type="file" method="upgrade">
    <name>files_joomla</name>
    </extension>
    [/XML]
    Output:
    Код (xml):
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <extension version="3.1" type="file" method="upgrade">
    3.     <name>files_joomla</name>
    4. </extension>