I am trying to have a verbatim environment in a tikz node just next to some other nodes.
I have tried
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\node (s1) {$a$};
\node (s2) [right=of s1] {$b$};
\node (s3) [above right=0cm and 1cm of s2] {$c$};
\node (s4) [below right=0cm and 1cm of s2] {$d$};
\node[right=6cm of s2] {%
verbatim environment
};
\path (s1) edge (s2);
\path (s2) edge (s3);
\path (s2) edge (s4);
\end{tikzpicture}
\end{document}
which produces
but if I add \begin{verbatim}...\end{verbatim}, it does not work any longer.
What I want is to have some nodes on the left and the some text in verbatim style on the right and a arrow from the nodes on the left to the text on the right.




