BBCode Guide

Learn how to format your content using BBCode. Below are the available BBCode tags and their rendered output:

Text Formatting

Makes text bold
BBCode:
[b]Bold Text[/b]
Output:
Bold Text
Makes text italic
BBCode:
[i]Italic Text[/i]
Output:
Italic Text
Underlines text
BBCode:
[u]Underlined Text[/u]
Output:
Underlined Text
Strikes through text
BBCode:
[s]Strikethrough Text[/s]
Output:
Strikethrough Text
Creates a section heading
BBCode:
[heading]This is a Heading[/heading]
Output:

This is a Heading

Highlights text with a yellow background
BBCode:
[highlight]Highlighted Text[/highlight]
Output:
Highlighted Text
Highlights text red with a grey background
BBCode:
[redcode]Inline Code[/redcode]
Output:
Inline Code

Alignment

Centers the text
BBCode:
[center]Centered Text[/center]
Output:
Centered Text
Aligns text to the left
BBCode:
[left]Left Aligned Text[/left]
Output:
Left Aligned Text
Aligns text to the right
BBCode:
[right]Right Aligned Text[/right]
Output:
Right Aligned Text

Lists

Creates a bullet list
BBCode:
[list][*]Item 1[*]Item 2[/list]
Output:
  • Item 1
  • Item 2
Creates a bullet list
BBCode:
[ul][li]Item 1[/li][li]Item 2[/li][/ul]
Output:
  • Item 1
  • Item 2

Links & Media

Creates a clickable link
BBCode:
[url=https://example.com]Example Link[/url]
Output:
Displays an image
BBCode:
[img]https://tutorial.ninja/imgs/tutorialavatars/7.png[/img]
Output:
TutorialNinja Image
Embeds a YouTube video
BBCode:
[youtube]dQw4w9WgXcQ[/youtube]
Output:

Code & Commands

Highlights PHP code
BBCode:
[code=php]echo 'Hello';[/code]
Output:
PHP Code
  1. echo 'Hello';
Highlights command line input
BBCode:
[cmd]sudo apt-get update[/cmd]
Output:
sudo apt-get update

Warnings, Quotes & Info

Creates a red warning box
BBCode:
[warn]This is a warning.[/warn]
Output:

This is a warning.

Creates a quote block
BBCode:
[quote]This is a quote.[/quote]
Output:

This is a quote.

Creates a info block
BBCode:
[info]Information can go here.[/info]
Output:

Information can go here.

Advanced

Hides content until revealed by the user
BBCode:
[spoiler]Hidden Content[/spoiler]
Output:
Hidden Content
Splits the content into multiple tabs with a custom title
BBCode:
[PAGE=Page Title]Content Here[/PAGE]
Creates a named anchor with a link to navigate to it
BBCode:
[anchor=section1]Section Title[/anchor]
[anchorlink=#section1]Jump to Section Title[/anchorlink]
Output:

Miscellaneous

Inserts a horizontal line
BBCode:
[hr]
Output:

Preserves formatting and spaces
BBCode:
[pre]Preformatted Text[/pre]
Output:
Preformatted Text
Adds subscript and superscript
BBCode:
[sub]Subscript[/sub] and [sup]Superscript[/sup]
Output:
Subscript and Superscript