Live data from Hacker News

Show HN: Generate high-res images of code samples with Chrome Headless

github.com

91–92 of 92 posts

Re: Show HN: Generate high-res images of code samples with Chrome Headless

#91

I like how people come up with new uses cases for headless Chrome. But for his use case ('presentation') there are tons of presentation libs/franeworks in HTML/JS/CSS which support code embeddings with syntax highlighting. Same quality but much easier workflow since code stays editable.

You assume he uses HTML/JS/CSS for presentation. What if it's Keynote/Powerpoint?

If he presents code then a HTML/CSS/JS system should be prefered aince syntax highlighting is easier. Something you can't get automatically done with the alternatives you mentioned.

Re: Show HN: Generate high-res images of code samples with Chrome Headless

#92

Seems to want to use Fira Code for some reason. I'd expect it to let the user choose which font should be used but, if not, at least don't require one with those ridiculous ligatures.

Why are they ridiculous?

This article pretty much sums it up.

http://tinyletter.com/mbutterick/letters/q-ligatures-in-prog...

Post reply on HN