\documentclass{article}
\newenvironment{DIFnomarkup}{}{}

\begin{document}

\begin{figure}[ht]
\begin{DIFnomarkup}
\small 
\begin{verbatim}
asdf
\end{verbatim}
\end{DIFnomarkup}
\end{figure}

\end{document}
