6 ms·
Ask HN: Where do I make these pretty code screenshots?
There was this website where you could paste a piece of code, select the language it was in, and optionally customise the looks, and then it would generate an image like this one: https://cdn-images-1.medium.com/max/800/1*mfd11vbzti63TdzIk7_ReQ.png
Does anyone know which website that was?
(I know that they're terrible for actual code samples in terms of accessibility, but I'd like to use one for decorative purposes.)
- ainiriand 8y agohttps://carbon.now.sh https://carbon.now.sh
- Vinnl 8y agoThat was quick - thanks!
- ktpsns 8y agoBeautiful. I noticed the SVG output is however really large and crude. Apparently it embeds HTML into SVG and then embeds the nice monospaced font again as Base-64 into CSS. The result is a 1.6MB SVG file (compare to the 41kB PNG) to display a few hundreds bytes of source code nicely.
- ezekg 8y agoAn an alternative to Carbon, MacOS supports window screenshots out of the box: https://news.ycombinator.com/item?id=17089362 https://news.ycombinator.com/item?id=17089362
- yash1th 8y agoWow. I didn’t know this until now. I always thought it’s used for just part of the screen. Thank you!
- wingerlang 8y agoIn Mojave you can use CMD-SHIFT-5 as well which will give you a GUI with all (?) options. There is a way to capture the window shadowless as well I recall/
- Kagerjay 8y agoClosest windows equivalent to this is sharex
- stephenr 8y agoNow? It's supported this for years. A decade at least.
- wishinghand 8y agoIf you’re using VS Code there’s an extension called PolaCode that can do screenshots of your code, but without those MacOS dots on the upper left. https://github.com/octref/polacode/ https://github.com/octref/polacode/
- deleted 8y ago[deleted]