# Discourse BBCode

**URL:** https://meta.discourse.org/t/discourse-bbcode/65425
**Category:** Plugin
**Tags:** official, bbcode
**Created:** [June 30, 2017, 9:13pm UTC](https://meta.discourse.org/t/discourse-bbcode/65425 "2017-06-30T21:13:22Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [June 30, 2017, 9:13pm UTC](https://meta.discourse.org/t/discourse-bbcode/65425/1 "2017-06-30T21:13:22Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **Summary** | **Discourse BBCode** adds the ability to use BBCode to format posts. |
| :discourse2: | **Hosted by us?** | This plugin is available on our Enterprise plans |
| 🧑‍🔧 | **Self-host Install** | [Install plugins on a self-hosted site](https://meta.discourse.org/t/install-plugins-on-a-self-hosted-site/19157) |
| 🛠 | **Repository Link** | [https://github.com/discourse/discourse-bbcode](https://github.com/discourse/discourse-bbcode) |

> [@](#):
>
> :discourse2: As this is an #official plugin maintained by the Discourse team, #Support, #Contribute > Bug, #Contribute > UX, and #Contribute > Feature requests can be made in the respective categories here on Meta, and tagged with the appropriate plugin tag. Click on a link below to get one started. 👍
> 
> [❓ **Support**](https://meta.discourse.org/new-topic?category_id=6&body=%3E%20Before%20asking,%20did%20you%20search%20first%3F%20Press%20%F0%9F%94%8D%20at%20the%20upper%20right%20to%20search.&tags=bbcode "Ask for support on configuring and using Discourse BBCode") [🐛 **Bug**](https://meta.discourse.org/new-topic?category_id=1&tags=bbcode "A bug report means something is broken, preventing normal/typical use of the plugin") [👀 **UX**](https://meta.discourse.org/new-topic?category_id=9&tags=bbcode "Discussion about the user interface of Discourse BBCode, and how features are presented (including language and UI elements)") [💡 **Feature**](https://meta.discourse.org/new-topic?category_id=2&tags=bbcode "Discussion about how existing Discourse BBCode features can be improved or enhanced, and how proposed new features could work")

The Discourse BBCode plugin enhances the Markdown composer \[1\] with support for the [BBCode syntax](https://www.bbcode.org/reference.php) beyond what is included by default (i.e. `[i]`, `[b]`, `[s]`, `[u]`, `[quote]`, `[url]`, `[email]` and `[code]`) to provide a more “BBCode” ™ experience.

## Features

 ![](https://global.discourse-cdn.com/meta/original/3X/4/e/4e1a35f2176f9346388755c1c07b09d43277a1c5.png)

### Inline constructs

Inline constructs that can be embedded in paragraphs `[s]like so[/s]`.

- `[size=SIZE]` : set the size of text

- `[font=FACE]`: set the font face for text

- `[color=COLOR]`: set the [color=#381]color[/color] of text [/li]

- `[bgcolor=COLOR]`: set background color of text

- `[highlight]`: Highlight text

- `[small]`: Make text very small

- `[aname=NAME]`: create an anchor in your document with a name

- `[jumpto=NAME]`: jump to anchor created with `aname`

### Multiline constructs

Multline (or block level) constructs encompass a block of text.

```plaintext
[right]
Like this example
[/right]

```

Multiline constructs must never start or end in the middle of a line.

#### Lists

```plaintext
[list]
* item
* item
[/list]

or

[ol]
[li]this is a list item[/li]
[/ol]

or

[ul]
[*] this is an item
[*] this is **an** item
[/ul]

```

#### Text alignment

```plaintext
[center]
Center some text
[/center]

[right]
Right align some text
[/right]

[left]
Left align some text
[/left]

```

> ⚠ **Caution:** These features can easily be used for abuse by hiding text and making text unreadable. BBCode will also make your markup less understandable.

* * *

1. This plugin is not built for the rich text mode of the composer, so you may need to use the ![image](https://global.discourse-cdn.com/meta/original/4X/f/4/4/f44daa6e2f773b97bc85c9a24bd1ea0464b44739.png) toggle to switch to Markdown mode when using these codes. If your community relies on this plugin, you can update the default\_composition\_mode site setting to ensure that members see the Markdown mode of the composer by default. 

> Last edited by @lindsey 2025-10-23T20:00:40Z
> 
> > **Check document**
> >
> > Perform check on document:

---

_[View the full topic](https://meta.discourse.org/t/discourse-bbcode/65425)._
