mirror of
https://ghfast.top/https://github.com/discourse/discourse-bbcode-color.git
synced 2026-05-05 18:32:29 +08:00
A Discourse Plugin to support BBCode color tags.
| .github/workflows | ||
| assets/javascripts/lib/discourse-markdown | ||
| spec | ||
| .discourse-compatibility | ||
| .gitignore | ||
| .npmrc | ||
| .prettierrc.cjs | ||
| .rubocop.yml | ||
| .streerc | ||
| .template-lintrc.cjs | ||
| eslint.config.mjs | ||
| Gemfile | ||
| Gemfile.lock | ||
| LICENSE | ||
| package.json | ||
| plugin.rb | ||
| pnpm-lock.yaml | ||
| README.md | ||
| stylelint.config.mjs | ||
| tsconfig.json | ||
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