Possible Duplicate:
How do I find out what fonts are used in a document/picture?
I would know which font it is. Someone could tell me?

Possible Duplicate:
How do I find out what fonts are used in a document/picture?
I would know which font it is. Someone could tell me?

As Werner has mentioned, you can use the listings package to produce a similar output; a little example (refer to the package documentation to learn all the customization possibilities it offers):
\documentclass{article}
\usepackage{pgfplots}
\usepackage{listings}
\usepackage{xcolor}
\definecolor{myblue}{RGB}{63,88,167}
\definecolor{mygray}{RGB}{204,202,229}
\lstset{ language=[LaTeX]TeX,
basicstyle=\ttfamily,
keywordstyle=\color{myblue},
morekeywords={addplot,coordinates,legend,axis,tikzpicture},
backgroundcolor=\color{mygray},
texcsstyle=*\color{black}
}
\begin{document}
\begin{lstlisting}
\begin{tikzpicture}
\begin{axis}[grid=major,width=6cm]
\addplot [thick,blue]
coordinates {(1,0.0000001) (2,0.0065) (3,0.1) (4,0.9)};
\end{axis}
\end{tikzpicture}
\end{lstlisting}
\end{document}

\ttfamily(from Computer Modern) font. – Werner Dec 12 '12 at 02:17\texttt{...}, or the switch{\ttfamily ...}. For the colour formatting, you'll have to look into thelistingspackage. As it stands, this is a duplicate of How do I find out what fonts are used in a document/picture? – Werner Dec 12 '12 at 02:19