Re:Highlight.js – Syntax highlighting for the Web
by lelandbatey on Friday February 20, 2015 @03:21PM
(#9082744)
Many popular syntax highlighting libraries do include this functionality. For example, the popular Python syntax highlighter "Pygments" supports line numbers[0].
[0] - http://pygments.org/docs/formatters/#HtmlFormatter