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.
- Host: GitHub
- URL: https://github.com/discourse/discourse-bbcode-color
- Owner: discourse
- License: mit
- Created: 2014-06-23T19:25:16.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2025-04-09T12:21:12.000Z (8 months ago)
- Last Synced: 2025-04-09T13:28:22.613Z (8 months ago)
- Topics: discourse-plugin
- Language: JavaScript
- Homepage:
- Size: 322 KB
- Stars: 17
- Watchers: 25
- Forks: 11
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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