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