I was commenting some code, and for styling purposes, added a "|" after the #, like this:
#| comment here
This caused the comment to turn gray. Not sure if I searched using the wrong terms but couldn't find anything about it in the RStudio portal or stackexchange. Appreciate if someone could explain what this does.