% Generator: GNU source-highlight, by Lorenzo Bettini, http://www.gnu.org/software/src-highlite
\documentclass{article}
\usepackage[usenames,dvipsnames]{color}

\title{formatted with source-highlight}
\date{}
\begin{document}
\maketitle
\noindent
\mbox{}\texttt{\textcolor{Black}{ 1:}} \textit{\textcolor{Brown}{/*}} \\
\mbox{}\texttt{\textcolor{Black}{ 2:}} \textit{\textcolor{Brown}{\ \ This\ is\ a\ classical\ Hello\ program}} \\
\mbox{}\texttt{\textcolor{Black}{ 3:}} \textit{\textcolor{Brown}{\ \ to\ test\ source-highlight\ with\ Java\ programs.}} \\
\mbox{}\texttt{\textcolor{Black}{ 4:}} \textit{\textcolor{Brown}{\ \ }} \\
\mbox{}\texttt{\textcolor{Black}{ 5:}} \textit{\textcolor{Brown}{\ \ to\ have\ an\ html\ translation\ type}} \\
\mbox{}\texttt{\textcolor{Black}{ 6:}}  \\
\mbox{}\texttt{\textcolor{Black}{ 7:}} \textit{\textcolor{Brown}{\ \ \ \ \ \ \ \ source-highlight\ -s\ java\ -f\ html\ -\/-input\ Hello.java\ -\/-output\ Hello.html}} \\
\mbox{}\texttt{\textcolor{Black}{ 8:}} \textit{\textcolor{Brown}{\ \ \ \ \ \ \ \ source-highlight\ -s\ java\ -f\ html\ \textless{}\ Hello.java\ \textgreater{}\ Hello.html}} \\
\mbox{}\texttt{\textcolor{Black}{ 9:}}  \\
\mbox{}\texttt{\textcolor{Black}{10:}} \textit{\textcolor{Brown}{\ \ or\ type\ source-highlight\ -\/-help\ for\ the\ list\ of\ options}} \\
\mbox{}\texttt{\textcolor{Black}{11:}}  \\
\mbox{}\texttt{\textcolor{Black}{12:}} \textit{\textcolor{Brown}{\ \ written\ by}} \\
\mbox{}\texttt{\textcolor{Black}{13:}} \textit{\textcolor{Brown}{\ \ Lorenzo\ Bettini}} \\
\mbox{}\texttt{\textcolor{Black}{14:}} \textit{\textcolor{Brown}{\ \ }}\underline{\texttt{\textcolor{Blue}{http://www.lorenzobettini.it}}} \\
\mbox{}\texttt{\textcolor{Black}{15:}} \textit{\textcolor{Brown}{\ \ }}\underline{\texttt{\textcolor{Blue}{http://www.gnu.org/software/src-highlite}}} \\
\mbox{}\texttt{\textcolor{Black}{16:}} \textit{\textcolor{Brown}{*/}} \\
\mbox{}\texttt{\textcolor{Black}{17:}}  \\
\mbox{}\texttt{\textcolor{Black}{18:}} \textbf{\textcolor{RoyalBlue}{package}}\ hello\textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{19:}}  \\
\mbox{}\texttt{\textcolor{Black}{20:}} \textbf{\textcolor{RoyalBlue}{import}}\ java\textcolor{BrickRed}{.}io\textcolor{BrickRed}{.*}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{21:}}  \\
\mbox{}\texttt{\textcolor{Black}{22:}} \textit{\textcolor{Brown}{/**}} \\
\mbox{}\texttt{\textcolor{Black}{23:}} \textit{\textcolor{Brown}{\ *\ }}\textbf{\textcolor{Blue}{\textless{}p\textgreater{}}} \\
\mbox{}\texttt{\textcolor{Black}{24:}} \textit{\textcolor{Brown}{\ *\ A\ simple\ Hello\ World\ class,\ used\ to\ demonstrate\ some}} \\
\mbox{}\texttt{\textcolor{Black}{25:}} \textit{\textcolor{Brown}{\ *\ features\ of\ Java\ source\ highlighting.}} \\
\mbox{}\texttt{\textcolor{Black}{26:}} \textit{\textcolor{Brown}{\ *\ }}\textbf{\textcolor{Blue}{\textless{}/p\textgreater{}}} \\
\mbox{}\texttt{\textcolor{Black}{27:}} \textit{\textcolor{Brown}{\ *\ }}\textbf{\colorbox{Cyan}{TODO:}}\textit{\textcolor{Brown}{\ nothing,\ just\ to\ show\ an\ highlighted\ }}\textbf{\colorbox{Cyan}{TODO}}\textit{\textcolor{Brown}{\ or\ }}\textbf{\colorbox{Cyan}{FIXME}} \\
\mbox{}\texttt{\textcolor{Black}{28:}} \textit{\textcolor{Brown}{\ *}} \\
\mbox{}\texttt{\textcolor{Black}{29:}} \textit{\textcolor{Brown}{\ *\ }}\textcolor{ForestGreen}{@author}\textit{\textcolor{Brown}{\ Lorenzo\ Bettini}} \\
\mbox{}\texttt{\textcolor{Black}{30:}} \textit{\textcolor{Brown}{\ *\ }}\textcolor{ForestGreen}{@version}\textit{\textcolor{Brown}{\ 2.0}} \\
\mbox{}\texttt{\textcolor{Black}{31:}} \textit{\textcolor{Brown}{\ */}}\ \textit{\textcolor{Brown}{///\ class}} \\
\mbox{}\texttt{\textcolor{Black}{32:}} \textbf{\textcolor{Blue}{public}}\ \textbf{\textcolor{Blue}{class}}\ \textcolor{TealBlue}{Hello}\ \textcolor{Red}{\{} \\
\mbox{}\texttt{\textcolor{Black}{33:}} \ \ \ \ \textcolor{ForestGreen}{int}\ foo\ \textcolor{BrickRed}{=}\ \textcolor{Purple}{1998}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{34:}} \ \ \ \ \textcolor{ForestGreen}{int}\ hex$\_$foo\ \textcolor{BrickRed}{=}\ \textcolor{Purple}{0xCAFEBABE}\textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{35:}} \ \ \ \ \textcolor{ForestGreen}{boolean}\ b\ \textcolor{BrickRed}{=}\ \textbf{\textcolor{Blue}{false}}\textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{36:}} \ \ \ \ \textcolor{TealBlue}{Integer}\ i\ \textcolor{BrickRed}{=}\ \textbf{\textcolor{Blue}{null}}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{37:}} \ \ \ \ \textcolor{ForestGreen}{char}\ c\ \textcolor{BrickRed}{=}\ \texttt{\textcolor{Red}{'}}\texttt{\textcolor{CarnationPink}{\textbackslash{}'}}\texttt{\textcolor{Red}{'}}\textcolor{BrickRed}{,}\ d\ \textcolor{BrickRed}{=}\ \texttt{\textcolor{Red}{'n'}}\textcolor{BrickRed}{,}\ e\ \textcolor{BrickRed}{=}\ \texttt{\textcolor{Red}{'}}\texttt{\textcolor{CarnationPink}{\textbackslash{}\textbackslash{}}}\texttt{\textcolor{Red}{'}}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{38:}} \ \ \ \ \textcolor{TealBlue}{String}\ xml\ \textcolor{BrickRed}{=}\ \texttt{\textcolor{Red}{"{}\textless{}tag\ attr=}}\texttt{\textcolor{CarnationPink}{\textbackslash{}"{}}}\texttt{\textcolor{Red}{value}}\texttt{\textcolor{CarnationPink}{\textbackslash{}"{}}}\texttt{\textcolor{Red}{\textgreater{}\ä\textless{}/tag\textgreater{}"{}}}\textcolor{BrickRed}{,}\ foo2\ \textcolor{BrickRed}{=}\ \texttt{\textcolor{Red}{"{}}}\texttt{\textcolor{CarnationPink}{\textbackslash{}\textbackslash{}}}\texttt{\textcolor{Red}{"{}}}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{39:}}  \\
\mbox{}\texttt{\textcolor{Black}{40:}} \ \ \ \ \textit{\textcolor{Brown}{/*\ mymethod\ */}} \\
\mbox{}\texttt{\textcolor{Black}{41:}} \ \ \ \ \textbf{\textcolor{Blue}{public}}\ \textcolor{ForestGreen}{void}\ \textbf{\textcolor{Black}{mymethod}}\textcolor{BrickRed}{(}\textcolor{ForestGreen}{int}\ i\textcolor{BrickRed}{)}\ \textcolor{Red}{\{} \\
\mbox{}\texttt{\textcolor{Black}{42:}} \ \ \ \ \ \ \ \ \textit{\textcolor{Brown}{//\ just\ a\ foo\ method}} \\
\mbox{}\texttt{\textcolor{Black}{43:}} \ \ \ \ \textcolor{Red}{\}} \\
\mbox{}\texttt{\textcolor{Black}{44:}} \ \ \ \ \textit{\textcolor{Brown}{/*\ mymethod\ */}} \\
\mbox{}\texttt{\textcolor{Black}{45:}} \ \ \  \\
\mbox{}\texttt{\textcolor{Black}{46:}} \ \ \ \ \textit{\textcolor{Brown}{/*\ main\ */}} \\
\mbox{}\texttt{\textcolor{Black}{47:}} \ \ \ \ \textbf{\textcolor{Blue}{public}}\ \textbf{\textcolor{Blue}{static}}\ \textcolor{ForestGreen}{void}\ \textbf{\textcolor{Black}{main}}\textcolor{BrickRed}{(}\ \textcolor{TealBlue}{String}\ args\textcolor{BrickRed}{[]}\ \textcolor{BrickRed}{)}\ \textcolor{Red}{\{} \\
\mbox{}\texttt{\textcolor{Black}{48:}} \ \ \ \ \ \ \ \ \textit{\textcolor{Brown}{//\ just\ some\ greetings\ ;-)\ \ /*}} \\
\mbox{}\texttt{\textcolor{Black}{49:}} \ \ \ \ \ \ \ \ System\textcolor{BrickRed}{.}out\textcolor{BrickRed}{.}\textbf{\textcolor{Black}{println}}\textcolor{BrickRed}{(}\ \texttt{\textcolor{Red}{"{}Hello\ from\ java2html\ :-)"{}}}\ \textcolor{BrickRed}{)}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{50:}} \ \ \ \ \ \ \ \ System\textcolor{BrickRed}{.}out\textcolor{BrickRed}{.}\textbf{\textcolor{Black}{println}}\textcolor{BrickRed}{(}\ \texttt{\textcolor{Red}{"{}}}\texttt{\textcolor{CarnationPink}{\textbackslash{}t}}\texttt{\textcolor{Red}{by\ Lorenzo\ Bettini"{}}}\ \textcolor{BrickRed}{)}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{51:}} \ \ \ \ \ \ \ \ System\textcolor{BrickRed}{.}out\textcolor{BrickRed}{.}\textbf{\textcolor{Black}{println}}\textcolor{BrickRed}{(}\ \texttt{\textcolor{Red}{"{}}}\texttt{\textcolor{CarnationPink}{\textbackslash{}t}}\texttt{\textcolor{Red}{http://www.lorenzobettini.it"{}}}\ \textcolor{BrickRed}{)}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{52:}} \ \ \ \ \ \ \ \ \textbf{\textcolor{Blue}{if}}\ \textcolor{BrickRed}{(}argc\ \textcolor{BrickRed}{\textgreater{}}\ \textcolor{Purple}{0}\textcolor{BrickRed}{)} \\
\mbox{}\texttt{\textcolor{Black}{53:}} \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{TealBlue}{String}\ param\ \textcolor{BrickRed}{=}\ argc\textcolor{BrickRed}{[}\textcolor{Purple}{0}\textcolor{BrickRed}{];} \\
\mbox{}\texttt{\textcolor{Black}{54:}} \ \ \ \ \ \ \ \ \textit{\textcolor{Brown}{//System.out.println(\ "{}bye\ bye...\ :-D"{}\ )\ ;\ //\ see\ you\ soon}} \\
\mbox{}\texttt{\textcolor{Black}{55:}} \ \ \ \ \textcolor{Red}{\}} \\
\mbox{}\texttt{\textcolor{Black}{56:}} \ \ \ \ \textit{\textcolor{Brown}{/*\ main\ */}} \\
\mbox{}\texttt{\textcolor{Black}{57:}} \textcolor{Red}{\}} \\
\mbox{}\texttt{\textcolor{Black}{58:}} \textit{\textcolor{Brown}{///\ class}} \\
\mbox{}\texttt{\textcolor{Black}{59:}}  \\
\mbox{}\texttt{\textcolor{Black}{60:}} \textit{\textcolor{Brown}{//\ end\ of\ file\ test.java}}

\end{document}