![]() |
Summary | Discourse BBCode adds the ability to use BBCode to format posts. |
![]() |
Hosted by us? | This plugin is available on our Enterprise plans |
![]() |
Self-host Install | Install plugins on a self-hosted site |
![]() |
Repository Link | https://github.com/discourse/discourse-bbcode |
The Discourse BBCode plugin enhances the Markdown composer [1] with support for the BBCode syntax beyond what is included by default (i.e. [i]
, [b]
, [s]
, [u]
, [quote]
, [url]
, [email]
and [code]
) to provide a more “BBCode” ™ experience.
Features
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 withaname
Multiline constructs
Multline (or block level) constructs encompass a block of text.
[right]
Like this example
[/right]
Multiline constructs must never start or end in the middle of a line.
Lists
[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
[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.
-
This plugin is not built for the rich text mode of the composer, so you may need to use the
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: