Hi,
The listing package is the standard way of including source code into a document an environment should be defined for it.
Examples;
\lstinputlisting[
caption={Example of caption},
label=lst:exampleoflable]
{src.java}
\lstinline|java.text.DateFormat|
thanks guys
Support for lstlisting environment (\begin{lstlisting}...\end{lstlisting}) is already implemented since version 1.1.0. I have now also added the \lstinline command and is part of the next release.