# [texhax] Question about numbering piece of code

Thu Jan 11 16:19:15 CET 2007

Hi

I want to insert a hundred lines of code to my Latex file, and add number
list before each line of code as

001  *****************

002  *******************

003  ************

.

.

.

120  ***************

I know

\begin{enumerate}

\item

\end{enumerate}

Could add number listing to the document, but that need to add

\begin{verbatim}

\end{verbatim}

Code environment after each \item

So is there any easy way to add number listing before each line of code?

Thank you !

Dayang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/texhax/attachments/20070111/34428227/attachment.html