A Discourse Plugin to support BBCode color tags.
Find a file
2026-03-26 13:27:08 +00:00
.github/workflows DEV: Add the d-compat branch workflow (#88) 2026-03-10 19:11:17 +00:00
assets/javascripts/lib/discourse-markdown DEV: Update linting (#53) 2024-01-15 11:24:11 +00:00
spec DEV: Update linting and add types (#85) 2026-01-28 11:48:11 +00:00
.discourse-compatibility DEV: Pin version for Discourse < 2026.2.0-latest (#86) 2026-02-11 16:41:11 +01:00
.gitignore DEV: Update linting and add types (#85) 2026-01-28 11:48:11 +00:00
.npmrc DEV: Switch to use pnpm (#62) 2024-10-14 13:38:16 +02:00
.prettierrc.cjs DEV: Update linting (#53) 2024-01-15 11:24:11 +00:00
.rubocop.yml DEV: Introduce syntax_tree for ruby formatting (#43) 2022-12-29 13:30:23 +01:00
.streerc DEV: Introduce syntax_tree for ruby formatting (#43) 2022-12-29 13:30:23 +01:00
.template-lintrc.cjs DEV: Update linting (#53) 2024-01-15 11:24:11 +00:00
eslint.config.mjs DEV: Update eslint config (#64) 2024-11-19 11:19:38 +01:00
Gemfile DEV: Introduce syntax_tree for ruby formatting (#43) 2022-12-29 13:30:23 +01:00
Gemfile.lock DEV: Update linting 2026-03-26 13:27:08 +00:00
LICENSE DEV: Update license (#72) 2025-02-24 11:34:27 +08:00
package.json DEV: Update linting 2026-03-26 13:27:08 +00:00
plugin.rb DEV: Update linting (#53) 2024-01-15 11:24:11 +00:00
pnpm-lock.yaml DEV: Update linting 2026-03-26 13:27:08 +00:00
README.md DEV: Update README to clarify BBCode color tags are for the Markdown editor (#84) 2025-11-21 13:35:03 -05:00
stylelint.config.mjs DEV: Update linting (#74) 2025-03-13 13:44:02 +00:00
tsconfig.json DEV: Update linting and add types (#85) 2026-01-28 11:48:11 +00:00

discourse-bbcode-color

A Discourse Plugin to enhance the Markdown composer with support for BBCode color tags

Official Plugin Topic & Documentation: https://meta.discourse.org/t/discourse-bbcode-color/65363

Usage

In your posts, surround text with [color=...] and [/color]. Color values are those supported by HTML, like red and #ff000. For example:

Look at my [color=red]red words[/color] and be amazed! Also, [color=#33ff33]green is cool[/color] too.

Works for background colors too!  This is your [bgcolor=yellow]typical yellow highlight[/bgcolor], and [bgcolor=blue] [color=white]you can mix em[/color] [color=red]up, you know?[/color][/bgcolor]

Installation

  • Add the plugin's repo url to your container's yml config file
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-bbcode-color.git
  • Rebuild the container
cd /var/discourse
git pull
./launcher rebuild app
  • Re-render all posts now that the plugin is installed. This won't create any extra revisions.
rake posts:rebake

License

MIT