Change the color of a specific content

I want to change the color of a specific content
For example, to make the character “|” automatically change to yellow
Is there a plugin or method to do this?

I think you can’t do that with CSS alone; you’d need a plugin of some sort. I don’t think one exists that does what you want.

Or you could make a template containing the character in a span with a class (<span class="pipe">|</span>) and style that class (.pipe {color: yellow;}). Then instead of typing the character you would use the template, either from the menu or by a hotkey that you set.

1 Like

Thanks a lot!!!