Skip to content
A Discourse Plugin to support BBCode color tags.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets/javascripts/lib/discourse-markdown DEV: Apply prettier Oct 22, 2018
spec Add frozen string literal comment to files. May 13, 2019
.gitignore Inherit rubocop config from discourse repo Dec 2, 2018
.rubocop.yml Inherit rubocop config from discourse repo Dec 2, 2018
LICENSE
README.md Update rebuild launcher command Sep 23, 2016
plugin.rb Add frozen string literal comment to files. May 13, 2019

README.md

discourse-bbcode-color

A Discourse Plugin to support BBCode color tags.

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

You can’t perform that action at this time.