'can I display the line numbers using sphinx.ext.viewcode?

I'm using the sphinx.ext.viewcode to document my API. Is it possible to display the line numbers on the produced cod-block and if yes how ?

I've tried to find an html_option in the docs but I didn't found anything.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source