You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In "source" mode for Quarto and R Markdown files, RStudio displays code chunks that will be evaluated with syntax highlighting:
However, if you remove the curly braces around {r}, the syntax highlighting disappears, even though the chunk is still identified as an "R" code chunk.
It would be helpful if the code chunk continued to display with syntax highlighting in this case.
(I realize I can spoof this by setting eval = FALSE, but the use case here is that I want to be able to copy-paste the document into a GitHub issue, and GitHub doesn't recognize {r} and prefers r.)
Activity
ronblum commentedon Sep 27, 2024
Note: This works in visual mode.