Is it possible to use the verbatim environment (i.e. \begin{verbatim}...\end{verbatim}
) in an XY-pic node? If so, please could you provide a MWE (Minimal Working Example)?
Update for those who want example code.
This (which is based on the LaTeX Wikibook examples) renders without errors:
\documentclass[class=minimal,border=0pt]{standalone}
\usepackage[all]{xy}
\usepackage{varwidth}
\renewcommand{\familydefault}{\sfdefault}
\begin{document}
\begin{displaymath}
\xymatrix{
*+[F:<3pt>]\txt{START}\ar[d] \\
*+[F:<3pt>]\txt{\begin{varwidth}{30em}We'll assume that Git is to be used for source control; so as a precaution against accidentally checking in temporary files used by Vim, enter the following at the command prompt:\end{varwidth}} \\
}
\end{displaymath}
\end{document}
but this, by contrast
\documentclass[class=minimal,border=0pt]{standalone}
\usepackage[all]{xy}
\usepackage{varwidth}
\usepackage{verbatim}
\renewcommand{\familydefault}{\sfdefault}
\begin{document}
\begin{displaymath}
\xymatrix{
*+[F:<3pt>]\txt{START}\ar[d] \\
*+[F:<3pt>]\txt{\begin{varwidth}{30em}We'll assume that Git is to be used for source control; so as a precaution against accidentally checking in temporary files used by Vim, enter the following at the command prompt: \begin{verbatim}echo '*.swp' >> .gitignore\end{verbatim}\end{varwidth}} \\
}
\end{displaymath}
\end{document}
causes pdflatex
to halt with the following:
<xymatrix
! Argument of \verbatim@ has an extra }.
<inserted text>
\par
l.12 }
?
\begin{verbatim}...\end{verbatim}
kind. This must have been obvious enough, as David Carlisle below was apparently able to infer it without difficulty. "Where?" In an XY-pic node, as clearly stated in the question. I don't see how the size of the XY-pic package, nor the fact that it provides other features besides nodes, makes this part of my question unclear.