\documentclass[a4paper]{article}
\usepackage{pyg1}
\styledefault

\begin{document}

\title{Testing Pygmen\TeX}
\maketitle

Testing the pygmentex software.

Here is an inline snippet of C code: \Verb[commandchars=\\\{\}]|\PY{k+kt}{int} \PY{n}{vect}\PY{p}{[}\PY{p}{]} \PY{o}{=} \PY{p}{\PYZob{}} \PY{l+m+mi}{10}\PY{p}{,} \PY{l+m+mi}{20}\PY{p}{,} \PY{l+m+mi}{30} \PY{p}{\PYZcb{}}|, ok?

A Java program:

\begin{Verbatim}[commandchars=\\\{\},numbers=left,firstnumber=1,stepnumber=2,frame=single]
\PY{k+kd}{public} \PY{k+kd}{class} \PY{n+nc}{Hello}
\PY{o}{\PYZob{}}
  \PY{k+kd}{public} \PY{k+kd}{static} \PY{k+kt}{void} \PY{n+nf}{main}\PY{o}{(}\PY{n}{String}\PY{o}{[}\PY{o}{]} \PY{n}{args}\PY{o}{)}
  \PY{o}{\PYZob{}}
    \PY{n}{System}\PY{o}{.}\PY{n+na}{out}\PY{o}{.}\PY{n+na}{println}\PY{o}{(}\PY{l+s}{"Hello, world!"}\PY{o}{)}\PY{o}{;}
  \PY{o}{\PYZcb{}}
\PY{o}{\PYZcb{}}
\end{Verbatim}

This is Pascal:

\begin{Verbatim}[commandchars=\\\{\},frame=single]
\PY{c+cm}{\PYZob{} this is a comment \PYZcb{}}
\PY{k}{procedure} \PY{n+nf}{p}\PY{p}{(}\PY{k}{var} \PY{n}{x}\PY{o}{:} \PY{k+kt}{Integer}\PY{p}{)}
  \PY{k}{begin}
    \PY{n+nb}{write}\PY{p}{(}\PY{l+s}{'}\PY{l+s}{Hello, world!}\PY{l+s}{'}\PY{p}{)}
  \PY{k}{end}
\end{Verbatim}

The end.

\end{document}
