# Discourse BBCode Color

**URL:** https://meta.discourse.org/t/discourse-bbcode-color/65363
**Category:** Plugin
**Tags:** official, bbcode-color
**Created:** [June 29, 2017, 8:56pm UTC](https://meta.discourse.org/t/discourse-bbcode-color/65363 "2017-06-29T20:56:20Z")
**Posts on this page:** 7
**Page:** 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 29, 2017, 8:56pm UTC](https://meta.discourse.org/t/discourse-bbcode-color/65363/1 "2017-06-29T20:56:20Z")

</div>

| | | |
| --- | --- | --- |
| :discourse2: | **Summary** | **Discourse BBCode Color** adds BBCode colors to the post formatting options. |
| 🛠 | **Repository Link** | [https://github.com/discourse/discourse-bbcode-color](https://github.com/discourse/discourse-bbcode-color) |
| 📖 | **Install Guide** | [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157) |

> [@](#):
>
> :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-color "Ask for support on configuring and using Discourse BBCode Color") [🐛 **Bug**](https://meta.discourse.org/new-topic?category_id=1&tags=bbcode-color "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-color "Discussion about the user interface of Discourse BBCode Color, and how features are presented (including language and UI elements)") [💡 **Feature**](https://meta.discourse.org/new-topic?category_id=2&tags=bbcode-color "Discussion about how existing Discourse BBCode Color features can be improved or enhanced, and how proposed new features could work")

The Discourse BBCode Color plugin enhances the Markdown composer \[1\] with support for the [BBCode [color] syntax](https://www.bbcode.org/changing-the-text-color-with-bbcode.php) and text background colors.

### Features

 ![](https://global.discourse-cdn.com/meta/original/3X/2/5/252cfb974ee8264cd6d35426a704f3a8bcc1cce8.png)

Set colors inline with:

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

Set background colors with:

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

> ⚠ **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:45Z
> 
> > **Check document**
> >
> > Perform check on document:

---

<div class="post-metadata">

### Author: ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)
#### Post date: [November 26, 2022, 10:42am UTC](https://meta.discourse.org/t/discourse-bbcode-color/65363/6 "2022-11-26T10:42:12Z")

</div>

Hi,  
sorry, I do not understand. What is the purpose of this plugin, as the [Discourse BBCode](https://meta.discourse.org/t/discourse-bbcode/65425/1) 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. 🙂  
Regards

---

<div class="post-metadata">

### Author: ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)
#### Post date: [November 26, 2022, 11:06am UTC](https://meta.discourse.org/t/discourse-bbcode-color/65363/8 "2022-11-26T11:06:11Z")

</div>

> [@merefield](#):
>
> It’s the same plugin. The link to the repo is the same.

Hm, no, the repo is different and also the content looks different:  
[https://github.com/discourse/discourse-bbcode](https://github.com/discourse/discourse-bbcode)

> **[GitHub - discourse/discourse-bbcode-color: A Discourse Plugin to support BBCode color tags.](https://github.com/discourse/discourse-bbcode-color)**
>
> A Discourse Plugin to support BBCode color tags.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [November 26, 2022, 12:15pm UTC](https://meta.discourse.org/t/discourse-bbcode-color/65363/9 "2022-11-26T12:15:35Z")

</div>

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

If you just need coloured text, consider:

> [@Discourse Coloured Text](https://meta.discourse.org/t/discourse-coloured-text/218111):
>
> “BBCode-lite” without the need to install a plugin … Adds a simple control (palette icon) to the Composer to facilitate colouring of the foreground and background of text Select a word or text Hit the palette control It will be wrapped like so: [wrap=color color=# bgcolor=#]word[/wrap] Replace the #s with html-compatible colour names, e.g. “red”, “grey” … experiment.biohazard NB Same caveats apply as to BBCode: can be used to hide text. Credits Uses @j.jaffeux’s [Generic bbcode…](https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516)

---

<div class="post-metadata">

### Author: ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)
#### Post date: [November 26, 2022, 7:04pm UTC](https://meta.discourse.org/t/discourse-bbcode-color/65363/10 "2022-11-26T19:04:18Z")

</div>

> [@merefield](#):
>
> If you just need coloured text

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.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [November 30, 2022, 7:34pm UTC](https://meta.discourse.org/t/discourse-bbcode-color/65363/11 "2022-11-30T19:34:45Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![twofoursixeight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twofoursixeight/32/574822_2.png) [@twofoursixeight](https://meta.discourse.org/u/twofoursixeight)
#### Post date: [September 7, 2024, 1:28am UTC](https://meta.discourse.org/t/discourse-bbcode-color/65363/12 "2024-09-07T01:28:30Z")

</div>

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?
