💻 How to add colour or highlight

Is there any shortcut to add this>

<del>delete</del>
delete
<ins>insert</ins>
insert

for more: Discourse BBCode

3 Likes

And now:

<mark> mark </mark>

for yellow too

2 Likes

Brown on the default dark theme apparently! :wink:

image


If you need more colors, you can wrap the text in spans like this:

<span data-theme-red>this text will be red</span>

And customize the color with CSS such as:

[data-theme-red] {
  background-color: red;
}

You can see a live example here, where I set colors to highlight returned, broken or stolen unicycle parts on a wiki topic: Schlumpf hub serial numbers reference - Unicycles and Equipment - Unicyclist.com

image

2 Likes

I didn’t even consider the changes in a dark theme. I should’ve stuck with: :slightly_smiling_face:

<mark> mark </mark>
mark

Flipping to the air-dark theme on meta, the mark highlight is a lovely shade of lilac. :slightly_smiling_face:

2 Likes