# Kan de HTML \`\<span\>\` tag worden gebruikt om tekst op te maken in de editor?

**URL:** https://meta.discourse.org/t/can-html-span-tag-be-used-to-format-text-in-editor/268851
**Category:** Support
**Created:** [19 juni 2023 om 05:36 UTC](https://meta.discourse.org/t/can-html-span-tag-be-used-to-format-text-in-editor/268851 "2023-06-19T05:36:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![anargha](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@anargha](https://meta.discourse.org/u/anargha)
#### Post date: [19 juni 2023 om 05:36 UTC](https://meta.discourse.org/t/can-html-span-tag-be-used-to-format-text-in-editor/268851/1 "2023-06-19T05:36:57Z")

</div>

I am setting up a self hosted Discourse forum. Thumbs up for the well documented install process and Kudos to the community for active support in forums !

Recently I noticed that I was unable to color text using HTML span tag as follows.

```plaintext
<span style="color: #ff0000;">test</span>

```

Am I missing some plugin for this? I have used [discourse-bbcode-color](https://github.com/discourse/discourse-bbcode-color) successfully. So coloring seems to work otherwise.

Screenshot is attached for reference. Thanks!

 ![Screenshot_20230619_104622](https://global.discourse-cdn.com/meta/original/4X/8/7/4/87489379b510e2d4ed965eeaf040d3d9d498c085.png)

---

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [19 juni 2023 om 06:03 UTC](https://meta.discourse.org/t/can-html-span-tag-be-used-to-format-text-in-editor/268851/2 "2023-06-19T06:03:15Z")

</div>

> [@Formatting posts using markdown, BBCode, and HTML](https://meta.discourse.org/t/supported-formatting-in-posts-markdown-bbcode-and-html/239348/4):
>
> Text color and text background color doesn’t seem to work with \<span\> or bbcode, am I missing something? \<span style="color:red"\>some red markdown text\</span\> some red markdown text bbcode: [color=red]Red color text[/color] [color=red]Red color text[/color]

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [20 juni 2023 om 09:51 UTC](https://meta.discourse.org/t/can-html-span-tag-be-used-to-format-text-in-editor/268851/4 "2023-06-20T09:51:56Z")

</div>

Welcome, Anargha! :blob_wave:

Alternatively, there’s an official BBCode plugin that supports colors **plus** other tags:

> [@Discourse BBCode](https://meta.discourse.org/t/discourse-bbcode/65425):
>
> information_sourceSummary Discourse BBCode adds the ability to use BBCode to format posts.discourse2Hosted by us? This plugin is available on our Enterprise plansmechanicSelf-host Install [Install plugins on a self-hosted site](https://meta.discourse.org/t/install-plugins-on-a-self-hosted-site/19157)hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-bbcode](https://github.com/discourse/discourse-bbcode) The Discourse BBCode plugin enhances the Markdown composer [[1]](#footnote-304175-1) with support for the [BBCode syntax](https://www.bbcode.org/reference.php) beyond what is included by default (i.e. [i], [b], [s], [u], […

You might also be interested in this:

> [@Customize posts' contents with your own styles](https://meta.discourse.org/t/customize-posts-contents-with-your-own-styles/257738):
>
> Requirementsinformation_source To be able to use these tips and tricks, you need to be an administrator of either a self-hosted Discourse instance or a [Discourse-hosted plan](https://discourse.org/pricing) higher than Basic. Introduction Discourse supports several methods to format and customize a post’s contents. You can find the list here: But sometimes, you’ll want something more specific, for example, a link that looks like a button. [Green button] This is the kind of modification we’ll learn here. The logic I’l…

---

<div class="post-metadata">

### Author: ![anargha](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@anargha](https://meta.discourse.org/u/anargha)
#### Post date: [21 juni 2023 om 09:47 UTC](https://meta.discourse.org/t/can-html-span-tag-be-used-to-format-text-in-editor/268851/5 "2023-06-21T09:47:18Z")

</div>

Thanks for pointing to custom styling. And yes, I am enjoying customizing discourse for my community. !

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [21 juli 2023 om 09:47 UTC](https://meta.discourse.org/t/can-html-span-tag-be-used-to-format-text-in-editor/268851/6 "2023-07-21T09:47:50Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
