News for hackers. Stuff that matters.
Re:Show HN: Generate high-res images of code samples with Ch... by mplewis on Monday September 11, 2017 @01:43PM (#15220441)
Thanks! I built this for Keynote presentations specifically. I wanted to be able to write code samples as snippet files, then generate a batch of images I can drop into my presentations.

If you're posting code on a website, you're right – you should prefer <pre><code> and prism.js or highlight.js :)

Re:Show HN: Generate high-res images of code samples with Ch... by imhoguy on Monday September 11, 2017 @02:14PM (#15220740)
I like the idea too, but :) would be Chrome Headless capable of producing SVG somehow? Aside usability I think about indexability/SEO aspect of the material. SVG with texts would be excellent for on-line presentations without lecturer, PDFs, books and maybe even partially editable.
Re:Show HN: Generate high-res images of code samples with Ch... by carlmr on Tuesday September 12, 2017 @03:15AM (#15225404)
I agree, that would also benefit me enough to install a JS monster on my computer, if I could generate SVG or PDF from highlighted code. My current solution being taking Screenpresso screenshots.
Re:Show HN: Generate high-res images of code samples with Ch... by justin--sane on Monday September 11, 2017 @03:01PM (#15221209)
My first thought was publication ready pseudo code or code snippets for posters