I'm trying to use TikZ in beamer to point to a line of code. Here's what I have so far:
\documentclass{beamer}
\usepackage{tikz}
\usepackage{fancyvrb}
\begin{document}
\begin{frame}[fragile,t]
\frametitle{test}
\begin{Verbatim}
example code
lines
\end{Verbatim}
\tikz \node [circle,fill=black] {};
\begin{Verbatim}
here
\end{Verbatim}
\end{frame}
\end{document}
The node, however, appears on a new line. I want to put it on the right of the line saying, "lines" so that I can then use TikZ overlays to point an arrow to it and put some explanatory lines on the right.
I have seen examples of this but they either use math or plain text. How can I do this with Verbatim?