First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.
What I’m trying to do
I want to find a way to conveniently color a line that has both regular texts and inline Latex codes in it. By “color a line” I mean changing the text color of all the symbols in this line to a color other than black.
Things I have tried
I have tried several plugins that can change text color. But when each of them color a line, the latex codes in this line become un-rendered (as shown in the picture).
How do you color the rest of the line? Which plugin/markup are you using?
You’ll most likely need to write a CSS snippet that picked up on when that other coloring is happening, and then “manually” apply that to the math blocks as well. This would most likely be a one time setup, but we need to know a little more on your setup to be able to help you.
The plugin I am now using is called “painter”. To use it, I just select a line and then press a hotkey. This adds the tags <mark class="hltr-red"> and </mark> before and after the selected line and thereby makes this line red.
Besides this way, I have also tried 1) adding the tags <font size=3, color='red'><b> and </b></font> before and after the selected line and 2) adding the tags <span style="color:red"> and </span> before and after the selected line.
All these ways successfully make the selected line red, but the latex codes in the line become unrendered (as shown in the first picture). What I am looking for is a convenient way to make a line colored like in the second picture.