Can HTML <span> tag be used to format text in editor?

AI-generated summary

Can HTML <span> tag be used to format text in editor?

anargha is setting up a self-hosted Discourse forum and is unable to use the HTML <span> tag to color text, despite successfully using the discourse-bbcode-color plugin. rahim123 points to a resource on supported formatting in Discourse, which includes Markdown, BBCode, and HTML. Canapin recommends using the official BBCode plugin for colors and other tags, and also shares resources on custom styling. anargha finds the custom styling resources helpful and enjoys customizing Discourse for their community.

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.

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

Am I missing some plugin for this? I have used discourse-bbcode-color successfully. So coloring seems to work otherwise.

Screenshot is attached for reference. Thanks!

Welcome, Anargha! :blob_wave:

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

You might also be interested in this:

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