News for hackers. Stuff that matters.
Re:Highlight.js – Syntax highlighting for the Web by jimmytucson on Friday February 20, 2015 @03:04PM (#9082607)
Is line numbers considered "highlighting"? I mean, I get why you would want it but I never would have thought to ask for it.
Re:Highlight.js – Syntax highlighting for the Web by awhitty on Friday February 20, 2015 @04:02PM (#9082988)
It does seem more appropriate to have a separate module for line numbers. I would definitely understand the separation of concerns argument, but the maintainer instead makes some sort of emotional appeal about clutter and simplicity to explain why there is no line number support.
Re:Highlight.js – Syntax highlighting for the Web by jnbiche on Friday February 20, 2015 @07:52PM (#9084130)
> the maintainer instead makes some sort of emotional appeal about clutter and simplicity to explain why there is no line number support

Clutter and simplicity is not an emotional argument. It becomes verifiably more difficult to maintain a code base with each new line. And since he's the one doing the maintaining, his position seems quite reasonable.

Secondly, he seems to have a strong aesthetic aversion to line numbers, and I can totally respect that. Frankly, among popular open source projects, those whose developers have the strongest sense of style and design and usually (not always) the best.

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

Re:Highlight.js – Syntax highlighting for the Web by pelhage on Friday February 20, 2015 @03:28PM (#9082794)
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