title: Sphinx, literalinclude, linenos: How to display the actual line numbers from the source code file on the doc's code snippet?
body: <p>I am using Sphinx to document parts of Javascript code on a web page.</p>
  
  <p>I use</p>
  
  <pre><code>.. literalinclude:: ../examples/mapviz-step1-simple.html
     :language: javascript
     :lines: 47-51
     :linenos:
  </code></pre>
  
  <p>I get </p>
  
  <p><img src="https://i.stack.imgur.com/ugsFm.png" alt="enter image description here"></p>
  
  <p>The code snippet comes from lines 47-51 of the actual source code file, not 1-5.</p>
  
  <p>How can I display the actual line numbers along with this snippet of code? </p>