I am writing an informative text and I need to use verbatim, below I have a code that is working in normal texts.
\colorbox{gray!10}{
\begin{minipage}{0.9\linewidth}
TEXT
\end{minipage}}
Now below the text inside the verbatim environment and I can't give the same background color as the other.
\colorbox{gray!10}{
\begin{minipage}{0.9\linewidth}
\begin{verbatim}
TEXT
\end{verbatim}
\end{minipage}}
How can I put all verbatim text in a frame like normal text? I'm using the xcolor package