I have the following:
\newcommand*{\code}{\lstinline}
It is (correctly) showing code in black, with keywords in blue. However, I would like all inline code to appear in a distinct color (browny/reddish). How can I achieve this?
Note that I can not redefine \code
to look something like this:
\newcommand{\code}[1]{\lstinline{#1}}
This is because of this issue, wherein I have inline code snippets that includes backslashes. I started pursuing a solution that uses \color
, but I couldn't figure out how to do that given the above constraint.
\lstinline
to redefine colors for keywords and other symbols:\newcommand*{\code}{\lstinline[keywordstyle=\color{brown}, basicstyle=\color{brown}]}