BBCode is a markup language that is used in the osu! forums and, to a larger extent, the vast majority of forums on the Internet. Used to enable rich text formatting, it is made up of tags that surround text to denote formatting, attributes, embedding, and more. It is used in various places across the osu! website, such as forum posts, signatures, user pages, and beatmap descriptions.
The edit box in the forums
Clicking a markup button without highlighting any text will create a set of open and closed tags around the text cursor in the post editor. Highlighting the text before clicking a markup button will surround said text with the tags.
Users, who wish to combine formatting onto a single section of text, can do so by placing BBCode tags inside of one another. However, the order and nesting of these tags must be respected when combining. Failure to do so will break the formatting.
A set of correct and incorrect usages of nested tags is described below:
BBCode, like many other markup languages, formats text using a system of tags, which is indicated by a pair of square brackets (
). These tags are divided into "opening" and "closing" tags, which are differentiated via the inclusion of a forward slash (
/). Specifically, closing tags contain a forward slash right after the opening bracket, while open tags do not.
It is also important to note that open tags occasionally include equals signs (
=) inside to indicate URLs, font sizes, and other such elements.
BBCode tags, which are supported on the osu! website, are listed and described in detail below.
[b] tag is used to strongly emphasise text through the use of bolding. BBCode bolding does not affect the font size.
[i] tag is used to lightly emphasise text by slanting the text forward (i.e. italicising).
[u] tag is used to emphasise text by drawing a horizontal line underneath said text (i.e. underlining). The horizontal line that is drawn will be affected by other tags like bolding and italicising.
Note: "strikethrough" may also be known as "strike".
[strike] tag is used to indicate a removal of previously included text through the use of a horizontal line that "crosses out" the text (i.e. a "strikethrough").
For a list of all colour names, see X11 color names
[color] tag is used to stylise text through various types of web-safe colours. The tag uses the HEX code format to specify the colour, although it can also be specified through HTML colour names like "red" or "green." To specify, replace the
HEXCODE argument with a colour's corresponding HEX code or HTML name.
The aforementioned argument does not take quotation marks (
"), and does not have a default colour. If no argument is specified, or if quotation marks are used, the tag will not be parsed as a BBCode tag.
[size] tag is used to stylise text through the use of differing font sizes. Currently, there are four sizes that are supported by the osu! website: 50, 85, 100, and 150. The sizes are internally referred to as "tiny," "small," "normal," and "large" respectively.
NUMBER argument does not accept quotation marks, and only accepts one of the four supported sizes. If a number, that is not one of the supported four, is inputted, the text will revert to the default size.
Not to be confused with Spoilerbox.
[spoiler] tag is used to cover up sensitive information with a solid black foreground that reveals the text underneath it upon being highlighted. If stacked with the
[color] tag, the black cover will not be affected. However, the text under the black cover will still be coloured, whether it is readable or not.
The tag is most commonly used to prevent spoiling critical/sensitive information regarding a TV show, movie, or other media. It is also sometimes used for comedic effect or emphasis.
Not to be confused with Spoilerbox.
[box=NAME] text [/box]
[box] tag is used to hide text and images inside of a clickable hyperlink. Upon clicking, the contents inside will be revealed in a similar fashion to a dropdown menu.
The custom hyperlink text is denoted by the
NAME argument. Specifying this argument will create a heading text inside the box using that argument, and will adjust the size of the box accordingly. If left unspecified, the
[box] tag will create a box with no heading text inside by default (which cannot be clicked on). The argument does not use quotations marks (
"), and will render whitespace.
The tag is most commonly used to hide large walls of text and images that may bloat up the size of a forum post. Most notably in FAQ or skin release posts.
Note: the BBCode box's toolbar button is called a "spoiler box", but does not create a
A spoilerbox is a special type of BBCode box that does not have a specifiable
NAME argument. The name of a spoilerbox is always shown as
SPOILER. Spoilerboxes have their own tag (
[spoilerbox]) but are functionally identical to BBCode boxes.
[quote="NAME"] text [/quote]
[quote] tag is used to stylistically format long quotations (a.k.a. "block quotes") through the use of indenting, colouring, bolding, and separating the text via a pink vertical line. The actual contents of the quote are placed between the open and closed tags, while the
NAME argument specifies the author of the quote (although this is optional). The text inside the quotes will render whitespace and line breaks.
NAME argument must be enclosed in quotation marks (
Long quotations are typically used in more formal writings in place of in-line quotations when said quotation is three or more lines long. Within the osu! forums, however, they are most commonly used to reply to another user's comment, which can be done automatically through the
Quote reply button located in the top-right of the desired comment (shown below). However, this button will only appear if the cursor is nearby.
[code] text [/code]
[code] tag is used to create preformatted code blocks (a.k.a. preformatted text). On the osu! website, the
[code] tag will format text in a monospace font inside of a semi-transparent grey box. Formatting text inside of a code block will tell the editor to treat the text between those tags literally, thus preventing the conversion of any tags or source code into something else.
Within the osu! forums, code blocks are most often used to post source code for a storyboard, or in tutorials that require showing the syntax for tags, commands, or source code.
[centre] tag is used to align text to the centre of a box. This is most often used for stylistic effect in titles, headers, or poems. If placed inside of or surrounding a
[quote] tag, the text inside the quote block will be centred, but the stylistic lines and such will not.
[url] tag is used to turn regular text into clickable hyperlinks.
Note: Using this tag is not necessary should one wish not to use custom hyperlink text, as the forum editor parses proper URLs into links automatically.
To create hyperlinks with the
[url] tag, users must specify two arguments: the linked text to be displayed, and the specific URL of the website to navigate to. The former must be specified between the open and closed tags, and the latter must be specified as the
LINK argument, without quotation marks (
"). If no text is specified, the text will default to the name of the URL.
[profile] tag is used to link to a user's osu! profile page by using their username or user ID. Usage of the
[profile] tag differs from the use of
[url] tag in that the
[profile] tag displays a user card when hovering over the link that is created by the tag.
Note: The user ID is a string of numbers that directly follow the
/users/ in the URL of an osu! profile page.
If specified through their user ID, the text between the open and closed tags will not be parsed and will instead display as the user's current username. However, if the profile page is specified only through a username, and said user changes their username, the link will cease to function.
[list=TYPE] [*]item 1 [*]item 2 [*]item 3 [/list]
[list] tag is used to automatically format numerous types of lists throughout the osu! forums by using an asterisk enclosed in brackets (
[*]) to indicate a new item in the list (shown above). By default, this will create a plain, bulleted list.
Other list styles can be formatted by specifying the
TYPE argument as
I, which will format lists as numbered, lettered (lowercase), lettered (uppercase), roman numeral (lowercase), and roman numeral (uppercase) respectively.
Notice: BBCode-formatted lists can be stacked on top of each other and placed inside one another, although this has been known to cause issues with formatting.
[img] tag is used to include online images into osu! forum posts. To use the tag, users must paste in the direct image address (represented by the
ADDRESS argument above) sourced from a website. Local file paths (e.g.
C:\Users\Name\Pictures\image.jpg) will not work.
Notice: A website URL is not the same as an image address.
In order to obtain an image address, one must navigate to the website it is sourced on, hover their mouse over the image, right-click on the image, and select
Copy image address. Then, the address should be copied and pasted in between the tags.
Although images can be sourced from anywhere, osu! recommends that users upload images to reputable image sharing sites like Imgur, as some websites do not appreciate direct links to their images (otherwise known as "hotlinks").
[youtube] tag is used to embed a YouTube video on the website. The tag requires the user to input only the video ID (not the entire URL) between the two tags (represented by the
VIDEO_ID argument above).
A YouTube video's ID is located in the URL of the video, and is the string of 11 characters directly after the
[audio] tag is used to embed an HTML5 audio player from an online audio source. Audio files can be sourced from anywhere, as long as the file exists from a given URL. Local file paths (e.g.,
C:\Users\Name\Music\audio.mp3) will not work.
Caution: Please beware that not all file-sharing services appreciate the ripping of their audio files, due to the music piracy concerns. osu! is not responsible for any copyright issues that users may encounter in that regard.
To embed audio files through this method, users must paste its source URL (e.g.
https://www.example.com/example.mp3) between the two
[heading] tag is used to format text into big, pink headers. The tag does not support multi-leveled headers, and cannot be specifically linked to.
[notice] text [/notice]
[notice] tag is used to place paragraphs into a large, outlined box with a dark body colour. The button is primarily used to denote notices or warnings regarding a certain subject on the website.
The following are BBCode tags that were once used in various places across the osu! website, but are now unavailable for use. Their usages and syntax are described below for historical purposes.
[google] tag is an outdated tag that was once used in the osu! forums to link to a Google search query using the provided text between two tags.
The tag would redirect users to a Google search through their account, meaning that the exact same results would not be given to everyone, as Google personalises users' results. Likewise, this also means that some search results would be hidden to certain users due to language or country restrictions.
[lucky] tag is an outdated tag that was once used in the osu! forums to link to a website directed from Google's
I'm Feeling Lucky button using the provided text. The website linked through this tag would not be the same for everyone due to the nature of the button itself.
The Heading (v2) tag is an outdated tag that was once used in the osu! forums to format text into a fancier-looking, purple heading with a horizontal line. The tag only worked in the Beatmaps forum, and only appeared after posting (not in preview). It had no button when it was in service, and was denoted by an open and closed bracket (no opening and closing tags).