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

\title{Contains references to tags}
\date{}
\begin{document}
\maketitle
\noindent
\mbox{}\texttt{\textcolor{Black}{01:}} \textit{\textcolor{Brown}{/**}} \\
\mbox{}\texttt{\textcolor{Black}{02:}} \textit{\textcolor{Brown}{**\ Copyright\ (C)\ 1999-2007\ Lorenzo\ Bettini}} \\
\mbox{}\texttt{\textcolor{Black}{03:}} \textit{\textcolor{Brown}{**\ \ }} \\
\mbox{}\texttt{\textcolor{Black}{04:}} \textit{\textcolor{Brown}{\ \ }}\underline{\texttt{\textcolor{Blue}{http://www.lorenzobettini.it}}} \\
\mbox{}\texttt{\textcolor{Black}{05:}} \textit{\textcolor{Brown}{\ \ }} \\
\mbox{}\texttt{\textcolor{Black}{06:}} \textit{\textcolor{Brown}{\ \ r2\ =\ r2\ XOR\ (1\textless{}\textless{}10);}} \\
\mbox{}\texttt{\textcolor{Black}{07:}} \textit{\textcolor{Brown}{\ \ cout\ \textless{}\textless{}\ "{}hello\ world"{}\ \textless{}\textless{}\ endl;}} \\
\mbox{}\texttt{\textcolor{Black}{08:}} \textit{\textcolor{Brown}{**\ \ }} \\
\mbox{}\texttt{\textcolor{Black}{09:}} \textit{\textcolor{Brown}{*/}} \\
\mbox{}\texttt{\textcolor{Black}{10:}}  \\
\mbox{}\texttt{\textcolor{Black}{11:}} \textit{\textcolor{Brown}{//\ this\ file\ also\ contains\ the\ definition\ of\ mysum\ as\ a\ \#define}} \\
\mbox{}\texttt{\textcolor{Black}{12:}}  \\
\mbox{}\texttt{\textcolor{Black}{13:}} \textit{\textcolor{Brown}{//\ textgenerator.h\ :\ Text\ Generator\ class\ \&\&}} \\
\mbox{}\texttt{\textcolor{Black}{14:}}  \\
\mbox{}\texttt{\textcolor{Black}{15:}} \textbf{\textcolor{RoyalBlue}{\#ifndef}}\ $\_$TEXTGEN$\_$H \\
\mbox{}\texttt{\textcolor{Black}{16:}} \textbf{\textcolor{RoyalBlue}{\#define}}\ \label{test.h:16}$\_$TEXTGEN$\_$H \\
\mbox{}\texttt{\textcolor{Black}{17:}}  \\
\mbox{}\texttt{\textcolor{Black}{18:}} \textbf{\textcolor{RoyalBlue}{\#define}}\ \textbf{\textcolor{Black}{\label{test.h:18}foo}}\textcolor{BrickRed}{(}x\textcolor{BrickRed}{)}\ \textcolor{BrickRed}{(}x\ \textcolor{BrickRed}{+}\ \textcolor{Purple}{1}\textcolor{BrickRed}{)} \\
\mbox{}\texttt{\textcolor{Black}{19:}}  \\
\mbox{}\texttt{\textcolor{Black}{20:}} \textbf{\textcolor{RoyalBlue}{\#define}}\ \label{test.h:20}mysum\ myfunbody\  \\
\mbox{}\texttt{\textcolor{Black}{21:}}  \\
\mbox{}\texttt{\textcolor{Black}{22:}} \textbf{\textcolor{RoyalBlue}{\#include}}\ \texttt{\textcolor{Red}{\textless{}iostream.h\textgreater{}}}\ \textit{\textcolor{Brown}{//\ for\ cerr}} \\
\mbox{}\texttt{\textcolor{Black}{23:}}  \\
\mbox{}\texttt{\textcolor{Black}{24:}} \textbf{\textcolor{RoyalBlue}{\#include}}\ \texttt{\textcolor{Red}{"{}genfun.h"{}}}\ \textit{\textcolor{Brown}{/*\ for\ generating\ functions\ */}} \\
\mbox{}\texttt{\textcolor{Black}{25:}}  \\
\mbox{}\texttt{\textcolor{Black}{26:}} \textbf{\textcolor{Blue}{class}}\ \textcolor{TealBlue}{\label{test.h:26}TextGenerator}\ \textcolor{Red}{\{} \\
\mbox{}\texttt{\textcolor{Black}{27:}} \ \ \textbf{\textcolor{Blue}{public}}\ \textcolor{BrickRed}{:} \\
\mbox{}\texttt{\textcolor{Black}{28:}} \ \ \ \ \textbf{\textcolor{Blue}{virtual}}\ \textcolor{ForestGreen}{void}\ \textbf{\textcolor{Black}{\label{test.h:28}generate}}\textcolor{BrickRed}{(}\ \textbf{\textcolor{Blue}{const}}\ \textcolor{ForestGreen}{char}\ \textcolor{BrickRed}{*}s\ \textcolor{BrickRed}{)}\ \textbf{\textcolor{Blue}{const}}\ \textcolor{Red}{\{}\ \textcolor{BrickRed}{(*}sout\textcolor{BrickRed}{)}\ \textcolor{BrickRed}{\textless{}\textless{}}\ s\ \textcolor{BrickRed}{;}\ \textcolor{Red}{\}} \\
\mbox{}\texttt{\textcolor{Black}{29:}} \ \ \ \ \textbf{\textcolor{Blue}{virtual}}\ \textcolor{ForestGreen}{void}\ \textbf{\textcolor{Black}{\label{test.h:29}generate}}\textcolor{BrickRed}{(}\ \textbf{\textcolor{Blue}{const}}\ \textcolor{ForestGreen}{char}\ \textcolor{BrickRed}{*}s\textcolor{BrickRed}{,}\ \textcolor{ForestGreen}{int}\ start\textcolor{BrickRed}{,}\ \textcolor{ForestGreen}{int}\ end\ \textcolor{BrickRed}{)}\ \textbf{\textcolor{Blue}{const}}\  \\
\mbox{}\texttt{\textcolor{Black}{30:}} \ \ \ \ \ \ \textcolor{Red}{\{} \\
\mbox{}\texttt{\textcolor{Black}{31:}} \ \ \ \ \ \ \ \ \textbf{\textcolor{Blue}{for}}\ \textcolor{BrickRed}{(}\ \textcolor{ForestGreen}{int}\ i\ \textcolor{BrickRed}{=}\ start\ \textcolor{BrickRed}{;}\ i\ \textcolor{BrickRed}{\textless{}=}\ end\ \textcolor{BrickRed}{;}\ \textcolor{BrickRed}{++}i\ \textcolor{BrickRed}{)} \\
\mbox{}\texttt{\textcolor{Black}{32:}} \ \ \ \ \ \ \ \ \ \ \textcolor{BrickRed}{(*}sout\textcolor{BrickRed}{)}\ \textcolor{BrickRed}{\textless{}\textless{}}\ s\textcolor{BrickRed}{[}i\textcolor{BrickRed}{]}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{33:}} \ \ \ \ \ \ \ \ \textbf{\textcolor{Blue}{return}}\ a\textcolor{BrickRed}{\textless{}}p\textcolor{BrickRed}{-\textgreater{}}b\ \textcolor{BrickRed}{?}\ a\ \textcolor{BrickRed}{:}\ \textcolor{Purple}{3}\textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{34:}} \ \ \ \ \ \ \textcolor{Red}{\}} \\
\mbox{}\texttt{\textcolor{Black}{35:}} \ \ \ \ \textbf{\textcolor{Blue}{virtual}}\ \textcolor{ForestGreen}{void}\ \textbf{\textcolor{Black}{\label{test.h:35}generateln}}\textcolor{BrickRed}{(}\ \textbf{\textcolor{Blue}{const}}\ \textcolor{ForestGreen}{char}\ \textcolor{BrickRed}{*}s\ \textcolor{BrickRed}{)}\ \textbf{\textcolor{Blue}{const}} \\
\mbox{}\texttt{\textcolor{Black}{36:}} \ \ \ \ \ \ \ \ \textcolor{Red}{\{}\  \\
\mbox{}\texttt{\textcolor{Black}{37:}} \ \ \ \ \ \ \ \ \ \ \ \ \textbf{\textcolor{Black}{generate}}\textcolor{BrickRed}{(}\ s\ \textcolor{BrickRed}{)}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{38:}} \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{BrickRed}{(*}sout\textcolor{BrickRed}{)}\ \textcolor{BrickRed}{\textless{}\textless{}}\ endl\ \textcolor{BrickRed}{;}\  \\
\mbox{}\texttt{\textcolor{Black}{39:}} \ \ \ \ \ \ \ \ \textcolor{Red}{\}} \\
\mbox{}\texttt{\textcolor{Black}{40:}} \ \ \ \ \textbf{\textcolor{Blue}{virtual}}\ \textcolor{ForestGreen}{void}\ \textbf{\textcolor{Black}{\label{test.h:40}generateEntire}}\textcolor{BrickRed}{(}\ \textbf{\textcolor{Blue}{const}}\ \textcolor{ForestGreen}{char}\ \textcolor{BrickRed}{*}s\ \textcolor{BrickRed}{)}\ \textbf{\textcolor{Blue}{const}} \\
\mbox{}\texttt{\textcolor{Black}{41:}} \ \ \ \ \ \ \ \ \textcolor{Red}{\{} \\
\mbox{}\texttt{\textcolor{Black}{42:}} \ \ \ \ \ \ \ \ \ \ \ \ \textbf{\textcolor{Black}{startTextGeneration}}\textcolor{BrickRed}{()}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{43:}} \ \ \ \ \ \ \ \ \ \ \ \ \textbf{\textcolor{Black}{generate}}\textcolor{BrickRed}{(}s\textcolor{BrickRed}{)}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{44:}} \ \ \ \ \ \ \ \ \ \ \ \ \textbf{\textcolor{Black}{endTextGeneration}}\textcolor{BrickRed}{()}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{45:}} \ \ \ \ \ \ \ \ \textcolor{Red}{\}} \\
\mbox{}\texttt{\textcolor{Black}{46:}} \ \ \ \ \textbf{\textcolor{Blue}{virtual}}\ \textcolor{ForestGreen}{void}\ \textbf{\textcolor{Black}{\label{test.h:46}startTextGeneration}}\textcolor{BrickRed}{()}\ \textbf{\textcolor{Blue}{const}}\ \textcolor{Red}{\{\}} \\
\mbox{}\texttt{\textcolor{Black}{47:}} \ \ \ \ \textbf{\textcolor{Blue}{virtual}}\ \textcolor{ForestGreen}{void}\ \textbf{\textcolor{Black}{\label{test.h:47}endTextGeneration}}\textcolor{BrickRed}{()}\ \textbf{\textcolor{Blue}{const}}\ \textcolor{Red}{\{\}} \\
\mbox{}\texttt{\textcolor{Black}{48:}} \ \ \ \ \textbf{\textcolor{Blue}{virtual}}\ \textcolor{ForestGreen}{void}\ \textbf{\textcolor{Black}{\label{test.h:48}beginText}}\textcolor{BrickRed}{(}\ \textbf{\textcolor{Blue}{const}}\ \textcolor{ForestGreen}{char}\ \textcolor{BrickRed}{*}s\ \textcolor{BrickRed}{)}\ \textbf{\textcolor{Blue}{const}} \\
\mbox{}\texttt{\textcolor{Black}{49:}} \ \ \ \ \ \ \ \ \textcolor{Red}{\{} \\
\mbox{}\texttt{\textcolor{Black}{50:}} \ \ \ \ \ \ \ \ \ \ \ \ \textbf{\textcolor{Black}{startTextGeneration}}\textcolor{BrickRed}{()}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{51:}} \ \ \ \ \ \ \ \ \ \ \ \ \textbf{\textcolor{Blue}{if}}\ \textcolor{BrickRed}{(}\ s\ \textcolor{BrickRed}{)} \\
\mbox{}\texttt{\textcolor{Black}{52:}} \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textbf{\textcolor{Black}{generate}}\textcolor{BrickRed}{(}\ s\ \textcolor{BrickRed}{)}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{53:}} \ \ \ \ \ \ \ \ \textcolor{Red}{\}} \\
\mbox{}\texttt{\textcolor{Black}{54:}} \ \ \ \ \textbf{\textcolor{Blue}{virtual}}\ \textcolor{ForestGreen}{void}\ \textbf{\textcolor{Black}{\label{test.h:54}endText}}\textcolor{BrickRed}{(}\ \textbf{\textcolor{Blue}{const}}\ \textcolor{ForestGreen}{char}\ \textcolor{BrickRed}{*}s\ \textcolor{BrickRed}{)}\ \textbf{\textcolor{Blue}{const}} \\
\mbox{}\texttt{\textcolor{Black}{55:}} \ \ \ \ \ \ \ \ \textcolor{Red}{\{} \\
\mbox{}\texttt{\textcolor{Black}{56:}} \ \ \ \ \ \ \ \ \ \ \ \ \textbf{\textcolor{Blue}{if}}\ \textcolor{BrickRed}{(}\ s\ \textcolor{BrickRed}{)} \\
\mbox{}\texttt{\textcolor{Black}{57:}} \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textbf{\textcolor{Black}{generate}}\textcolor{BrickRed}{(}\ s\ \textcolor{BrickRed}{)}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{58:}} \ \ \ \ \ \ \ \ \ \ \ \ \textbf{\textcolor{Black}{endTextGeneration}}\textcolor{BrickRed}{()}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{59:}} \ \ \ \ \ \ \ \ \textcolor{Red}{\}} \\
\mbox{}\texttt{\textcolor{Black}{60:}} \textcolor{Red}{\}}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{61:}}  \\
\mbox{}\texttt{\textcolor{Black}{62:}} \textit{\textcolor{Brown}{//\ Decorator}} \\
\mbox{}\texttt{\textcolor{Black}{63:}} \textbf{\textcolor{Blue}{class}}\ \textcolor{TealBlue}{\label{test.h:63}TextDecorator}\ \textcolor{BrickRed}{:}\ \textbf{\textcolor{Blue}{public}}\ TextGenerator\ \textcolor{Red}{\{} \\
\mbox{}\texttt{\textcolor{Black}{64:}} \ \ \textbf{\textcolor{Blue}{protected}}\ \textcolor{BrickRed}{:} \\
\mbox{}\texttt{\textcolor{Black}{65:}} \ \ \ \ \textcolor{TealBlue}{TextGenerator}\ \textcolor{BrickRed}{*}\label{test.h:65}decorated\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{66:}} \ \  \\
\mbox{}\texttt{\textcolor{Black}{67:}} \ \ \textbf{\textcolor{Blue}{public}}\ \textcolor{BrickRed}{:} \\
\mbox{}\texttt{\textcolor{Black}{68:}} \ \ \ \ \textbf{\textcolor{Black}{\label{test.h:68}TextDecorator}}\textcolor{BrickRed}{(}\ \textcolor{TealBlue}{TextGenerator}\ \textcolor{BrickRed}{*}t\ \textcolor{BrickRed}{)}\ \textcolor{BrickRed}{:}\ \textbf{\textcolor{Black}{decorated}}\textcolor{BrickRed}{(}\ t\ \textcolor{BrickRed}{)}\ \textcolor{Red}{\{\}} \\
\mbox{}\texttt{\textcolor{Black}{69:}}  \\
\mbox{}\texttt{\textcolor{Black}{70:}} \ \ \ \ \textbf{\textcolor{Blue}{virtual}}\ \textcolor{ForestGreen}{void}\ \textbf{\textcolor{Black}{\label{test.h:70}startTextGeneration}}\textcolor{BrickRed}{()}\ \textbf{\textcolor{Blue}{const}}\  \\
\mbox{}\texttt{\textcolor{Black}{71:}} \ \ \ \ \textcolor{Red}{\{}\  \\
\mbox{}\texttt{\textcolor{Black}{72:}} \ \ \ \ \ \ \ \ \textbf{\textcolor{Black}{startDecorate}}\textcolor{BrickRed}{()}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{73:}} \ \ \ \ \ \ \ \ \textbf{\textcolor{Blue}{if}}\ \textcolor{BrickRed}{(}\ decorated\ \textcolor{BrickRed}{)} \\
\mbox{}\texttt{\textcolor{Black}{74:}} \ \ \ \ \ \ \ \ \ \ \ \ decorated\textcolor{BrickRed}{-\textgreater{}}\textbf{\textcolor{Black}{startTextGeneration}}\textcolor{BrickRed}{()}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{75:}} \ \ \ \ \textcolor{Red}{\}} \\
\mbox{}\texttt{\textcolor{Black}{76:}} \ \ \ \ \textbf{\textcolor{Blue}{virtual}}\ \textcolor{ForestGreen}{void}\ \textbf{\textcolor{Black}{\label{test.h:76}endTextGeneration}}\textcolor{BrickRed}{()}\ \textbf{\textcolor{Blue}{const}}\  \\
\mbox{}\texttt{\textcolor{Black}{77:}} \ \ \ \ \textcolor{Red}{\{}\  \\
\mbox{}\texttt{\textcolor{Black}{78:}} \ \ \ \ \ \ \ \ \textbf{\textcolor{Blue}{if}}\ \textcolor{BrickRed}{(}\ decorated\ \textcolor{BrickRed}{)} \\
\mbox{}\texttt{\textcolor{Black}{79:}} \ \ \ \ \ \ \ \ \ \ \ \ decorated\textcolor{BrickRed}{-\textgreater{}}\textbf{\textcolor{Black}{endTextGeneration}}\textcolor{BrickRed}{()}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{80:}} \ \ \ \ \ \ \ \ \textbf{\textcolor{Black}{endDecorate}}\textcolor{BrickRed}{()}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{81:}} \ \ \ \ \ \ \ \ mysum\textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{82:}} \ \ \ \ \textcolor{Red}{\}} \\
\mbox{}\texttt{\textcolor{Black}{83:}}  \\
\mbox{}\texttt{\textcolor{Black}{84:}} \ \ \ \ \textit{\textcolor{Brown}{//\ pure\ virtual\ functions}} \\
\mbox{}\texttt{\textcolor{Black}{85:}} \ \ \ \ \textbf{\textcolor{Blue}{virtual}}\ \textcolor{ForestGreen}{void}\ \textbf{\textcolor{Black}{startDecorate}}\textcolor{BrickRed}{()}\ \textbf{\textcolor{Blue}{const}}\ \textcolor{BrickRed}{=}\ \textcolor{Purple}{0}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{86:}} \ \ \ \ \textbf{\textcolor{Blue}{virtual}}\ \textcolor{ForestGreen}{void}\ \textbf{\textcolor{Black}{endDecorate}}\textcolor{BrickRed}{()}\ \textbf{\textcolor{Blue}{const}}\ \textcolor{BrickRed}{=}\ \textcolor{Purple}{0}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{87:}} \textcolor{Red}{\}}\ \textcolor{BrickRed}{;} \\
\mbox{}\texttt{\textcolor{Black}{88:}}  \\
\mbox{}\texttt{\textcolor{Black}{89:}} \textbf{\textcolor{RoyalBlue}{\#endif}}\ \textit{\textcolor{Brown}{//\ $\_$TEXTGEN$\_$H}} \\
\mbox{}\texttt{\textcolor{Black}{90:}} \mbox{}{\hfill $\_$TEXTGEN$\_$H $\rightarrow$ test.h:16, page~\pageref{test.h:16}} \\
\mbox{}{\hfill TextGenerator $\rightarrow$ test.h:26, page~\pageref{test.h:26}} \\
\mbox{}{\hfill decorated $\rightarrow$ test.h:65, page~\pageref{test.h:65}} \\
\mbox{}{\hfill endTextGeneration $\rightarrow$ test.h:47, page~\pageref{test.h:47}} \\
\mbox{}{\hfill endTextGeneration $\rightarrow$ test.h:76, page~\pageref{test.h:76}} \\
\mbox{}{\hfill generate $\rightarrow$ test.h:28, page~\pageref{test.h:28}} \\
\mbox{}{\hfill generate $\rightarrow$ test.h:29, page~\pageref{test.h:29}} \\
\mbox{}{\hfill mysum $\rightarrow$ test.h:20, page~\pageref{test.h:20}} \\
\mbox{}{\hfill startTextGeneration $\rightarrow$ test.h:46, page~\pageref{test.h:46}} \\
\mbox{}{\hfill startTextGeneration $\rightarrow$ test.h:70, page~\pageref{test.h:70}} \\


\end{document}
