How to change a font color in all cards?

I have many cards I want to change just a specific font color of text in all cards.
e.g :

I want to set this font color code “#ff00ff” only for the word “an”.
I tried this :
Find : <span style="color: rgb(255, 0, 0);">
Replace With : <font color="#ff00ff">
The result is :
I wouldn’t the word “example” to be affected by that color, I only want the word “an” to be.
This is the result that I want :
Could you please help me to get this result, I will appreciate it.

Note that your tag is after “example”. I think the problem is you are replacing a <span> tag with a different type and not closing it, so the closing </span> doesn’t take effect after the word “an” and Anki is placing the </font> tag at the end of the field.

You can simply replace with <span style="color: #ff00ff;"> instead and the closing span tag will work.

Or, if you want to use <font> instead, you can replace the whole thing from <span… to </span> like:


<span style="color: rgb(255, 0, 0);">an<br></span>


<font color="#ff00ff">an<br></font>


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