I'm trying the add a grey highlight to the \texttt command to essentially achieve the same effect as the code blocks on here.
This is something I attempted to do when I first started writing my current document. I don't remember how I got there but the renew command I wrote looks like this:
\definecolor{Light}{gray}{.90}
\sethlcolor{Light}
\renewcommand{\texttt}{\hl}
This gives me the grey highlight, but the font it no longer monospace.
Can anyone help me?

