An open API service indexing awesome lists of open source software.

https://github.com/discourse/discourse-bbcode-color

A Discourse Plugin to support BBCode color tags.
https://github.com/discourse/discourse-bbcode-color

discourse-plugin

Last synced: 8 months ago
JSON representation

A Discourse Plugin to support BBCode color tags.

Awesome Lists containing this project

README

          

# discourse-bbcode-color

A Discourse Plugin to support 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

```yml
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

```shell
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.

```shell
rake posts:rebake
```

# License

MIT