News for hackers. Stuff that matters.

marcoslooten

Oh cool, got it. Did not expect that but it's something else than a device mockup! If you're handy with HTML and CSS you could probably replace the code window with your own image (in the devtools inspector) and it should work.
Thank you, appreciate it!

For sure, you can just set it to Markdown and use it for snippets of text. For now just in the monospace (Mono Lisa) font, but if that suits your style you can do that.

Thank you for your kind words and feedback.

Especially color scheme is an option that has been requested multiple times. Here, it really shows I was not building it for an audience but just for myself. Now that it's public, I should consider making it more flexible without adding too much complexity. I think color schemes are relatively easy to add and might give a lot of value.

Inner/outer padding is something I haven't seen mentioned before, but totally get.

I need to figure out a way to keep it simple and cater to more use cases. I think both points are valid and I'm probably adding those short term.

Thanks for checking it out! So if I understand correctly, to you the feature to create an image from a gist is useful, but the gradients are too limiting or detracting from what you want it to be? I'm thinking about making that more flexible (turn it off).

Although it sounds like carbon.now.sh is more what you are looking for perhaps?

Again appreciate you checking it out and I will consider your remarks.

Re:Show HN: Generate pretty code screenshots with gradients on Saturday August 15, 2020 @08:07AM (#24168291)
Yeah, mobile is a bit difficult because of the way the screenshots are generated, but if you want to look at a generated screenshot with some JavaScript, check this picture: https://twitter.com/MarcoSlooten/status/1291735166713565185/...
Re:Show HN: Generate pretty code screenshots with gradients on Saturday August 15, 2020 @07:28AM (#24168096)
Snippet Shot is side project I build during my vacation. I wanted something like the obvious tool, but simpler and more in line with my workflow. I also really wanted a gradient background because I'm a bit tired of the solid color backgrounds! So basically just changing it up, challenging myself and seeing how such a tool is built.

The way it works: you either paste in a Github gist url or just the code, tweak the settings if needed (including choosing a gradient) and downloading a PNG or SVG of the code.

I'm pretty happy with it right now for my personal use cases, but I'm planning on adding a bunch of other features and improvements and I'm really curious to hear your opinion. I know it's nothing groundbreaking, but hopefully it's of use for some people.