Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



I personally use Prism.js for my blogging, which is what Smashing Magazine and CSS-tricks uses. Prism includes line numbers.

I like Prism so far and don't have any issues with it yet




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: