RStudio highlight for LaTeX code

Hello everyone,

I recently start using Quarto and R markdown intensively to write some latex math equations.
However, I found that in both qmd and rmd doc, R studio does not highlight any latex code in the math environment. This makes it hard to write multiple equations in the same $$...$$ environment.

So is there any workaround to adjust this setting in R studio ?
My friend using Quarto in VScode has no this problem (he has syntax highlight for everything).


For example, in the below screenshot, you can see that there is no any latex syntax highlight/coloring inside $$...$$.

If I move then out of the $$...$$, at least they have some coloring (but this is useless).

Thank you for reading my question.
Any help would be appreciated !

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.