# How can I start the line numbering of my listing by an arbitrary number?

This is what I want:

15  <servlet>
16    <servlet-name>udpListener</servlet-name>
17    <servlet-class>oli.servlet.UdpServlet</servlet-class>
18    <!-- UDP Port fuer MSX -->
19    <init-param>
20      <param-name>udpPort</param-name>
21      <param-value>4951</param-value>  <!--Empfangsport-->
22    </init-param>
24  </servlet>


I want that line numbering starts at an number other than 1.

-

## migrated from stackoverflow.comJun 24 '12 at 13:04

This question came from our site for professional and enthusiast programmers.

Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. –  Werner Jun 24 '12 at 19:29
Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers. –  Jubobs Mar 1 '14 at 19:19

\begin{lstlisting}[firstnumber=100]