# 为话题添加彩色文本

**URL:** https://meta.discourse.org/t/adding-colour-text-to-a-topic/124691
**Category:** Support
**Created:** [2019年八月2日 05:48 UTC](https://meta.discourse.org/t/adding-colour-text-to-a-topic/124691 "2019-08-02T05:48:36Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![RBoy](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@RBoy](https://meta.discourse.org/u/RBoy)
#### Post date: [2023年十一月3日 15:15 UTC](https://meta.discourse.org/t/adding-colour-text-to-a-topic/124691/4 "2023-11-03T15:15:55Z")

</div>

如果您不想要一个插件（这需要编辑 `app.yml` 并重新构建 discourse，并且如果插件在未来停止工作，则有损坏的风险，尽管 BBCode 颜色插件是一个官方插件，风险较低），您可以添加一个主题附加组件，这可以通过管理员浏览器页面完成，无需重新编译：

> [@Discourse Coloured Text](https://meta.discourse.org/t/discourse-coloured-text/218111):
>
> “BBCode-lite” without the need to install a plugin … Adds a simple control (palette icon) to the Composer to facilitate colouring of the foreground and background of text Select a word or text Hit the palette control It will be wrapped like so: [wrap=color color=# bgcolor=#]word[/wrap] Replace the #s with html-compatible colour names, e.g. “red”, “grey” … experiment.biohazard NB Same caveats apply as to BBCode: can be used to hide text. Credits Uses @j.jaffeux’s [Generic bbco…](https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516)

---

_[View the full topic](https://meta.discourse.org/t/adding-colour-text-to-a-topic/124691)._
