Given a verbatim as on below,
\begin{verbatim}
This is an awesome verbatim
\end{verbatim}
which is displayed with no background on the compiled pdf page :
This is an awesome verbatim
I would like to have a soft grey background on this verbatim instead. The result on the compiled pdf page would be :
This is an awesome verbatim
Is there a simple way doing it, still using the verbatim (ie. not using listings)? Thank you in advance.
ADDITIONAL QUESTION :
Is this possible to do the same with \texttt{not usual verbatim but still code quote}
and getting also a grey background for all \texttt{*}
elements ?
It would also display :
not verbatim but still code quote
fancyvrb
could help you.texdoc fancyvrb
from the command line. Maybe thelistings
package is also worth to be checked out