\begin{lstlisting}
  [float,language=...,
  caption={...},
  label={listing:...}]
...
\end{lstlisting}