Latex sudo noob here. I had a question regarding the answer to the question TeXstudio recognize $ in R code as that of the math mode
How does one create the special comment listed in the answer?
It is used to reduce the incorrect highlighting in a minted like space for RStudio. I am trying to document some bash scripts and environemental variable references cause TexStudio to highlight whole swaths of text to math mode. The solution about would mitigate some of this but I don't know how to implement it.
EDIT 1: So the obvious answer would be to add a "%$" to the end of the line. This does not work at least for me. This would make my question "Am I doing it wrong?" or "Is there another solution?"
EDIT 2: Below is an image of the problem:
Here it is with the suggested modification from the previous question: