# 如何使用颜色在discourse中突出评论

**URL:** https://meta.discourse.org/t/how-to-use-colors-to-highlight-comments-in-discourse/310784
**Category:** Support
**Created:** [2024 年6 月 6 日 10:07 UTC](https://meta.discourse.org/t/how-to-use-colors-to-highlight-comments-in-discourse/310784 "2024-06-06T10:07:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Eman\_Ahmed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eman_ahmed/32/542047_2.png) [@Eman\_Ahmed](https://meta.discourse.org/u/Eman_Ahmed)
#### Post date: [2024 年6 月 6 日 10:07 UTC](https://meta.discourse.org/t/how-to-use-colors-to-highlight-comments-in-discourse/310784/1 "2024-06-06T10:07:44Z")

</div>

尊敬的各位：

我需要你们的支持，以便在 Discourse 中启用颜色功能，我们可以使用不同的颜色，甚至蓝色和红色来突出重要的评论。

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2024 年6 月 6 日 10:16 UTC](https://meta.discourse.org/t/how-to-use-colors-to-highlight-comments-in-discourse/310784/2 "2024-06-06T10:16:04Z")

</div>

我相信工作人员可以使用工作人员颜色来突出显示他们的帖子，但您也可以使用 `<mark>` 标签来突出显示某些内容：突出显示的内容。

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [2024 年6 月 6 日 10:35 UTC](https://meta.discourse.org/t/how-to-use-colors-to-highlight-comments-in-discourse/310784/3 "2024-06-06T10:35:29Z")

</div>

还有一些主题组件和插件可供您使用以获得额外功能。例如

> [@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)

> [@Highlighter Composer Button](https://meta.discourse.org/t/highlighter-composer-button/277597):
>
> information_sourceSummary A Text Highlighter Button for the Discourse Composer ToolbareyeglassesPreview [Video Demo](https://vimeo.com/860540857)hammer_and_wrenchRepository [GitHub - denvergeeks/discourse-highlight-wrap-theme-component: A Text Highlighter Button for the Discourse Composer Toolbar](https://github.com/denvergeeks/discourse-highlight-wrap-theme-component)questionInstall Guide [How to install a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component The button looks lik…

> [@Discourse BBCode Color](https://meta.discourse.org/t/discourse-bbcode-color/65363):
>
> discourse2Summary Discourse BBCode Color adds BBCode colors to the post formatting options.hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-bbcode-color](https://github.com/discourse/discourse-bbcode-color)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157) The Discourse BBCode Color plugin enhances the Markdown composer [[1]](#footnote-303904-1) with support for the [BBCode [color] syntax](https://www.bbcode.org/changing-the-text-color-with-bbcode.php) and text background colors. Features Set colors inline with: [color=#aaa]text[/color] [color=red]text[/color] …
