Discourse BBCode Color

:discourse2: Summary Discourse BBCode Color adds BBCode colors to the post formatting options.
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-bbcode-color
:open_book: Install Guide How to install plugins in Discourse

The Discourse BBCode Color plugin enhances the Markdown composer [1] with support for the BBCode [color] syntax and text background colors.

Features

Set colors inline with:

[color=#aaa]text[/color]
[color=red]text[/color]

Set background colors with:

[bgcolor=#aaa]text[/bgcolor]
[bgcolor=red]text[/bgcolor]

:warning: 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 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:45Z

Check documentPerform check on document:
21 Likes

Hi,
sorry, I do not understand. What is the purpose of this plugin, as the Discourse BBCode plugin also handles the color codes. I’m sure it is just a misconception here on my side and I am stuck somewhere. Please bring me up to speed. :slight_smile:
Regards

1 Like

Hm, no, the repo is different and also the content looks different:

1 Like

Oh apologies, you are right. Still odd I agree.

If you just need coloured text, consider:

No, I migrated from phpBB to Discourse. So I have a lot of BBCode in thousands of posts. I only have the discourse-bbcode plugin installed - and always was wondering about the differences.

1 Like

From having a little investigation it seems that it was kept as two plugins so people could have the option of having just the simpler colour version without everything else included as well.

4 Likes

Will there be a plugin / theme component that adds the ability to quickly select preset colors by pressing a single button on the user interface or a dropdown based on this plugin?

1 Like