I am using Sphinx to document portions of Javascript code on a web page.
I use
.. literalinclude:: ../examples/mapviz-step1-simple.html
:language: javascript
:lines: 47-51
:linenos:
I get

The code snippet is derived from lines 47-51 of the actual source code file, not 1-5.
How can I display the actual line numbers with this piece of code?
source
share