News for hackers. Stuff that matters.
Re:Create and share images of your source code by aiNohY6g on Friday October 15, 2021 @12:33AM (#28874327)
Dear reader, what local alternative would you recommend?
Re:Create and share images of your source code by marclittlemore on Friday October 15, 2021 @03:39AM (#28875363)
I've documented a few of the alternatives, including Carbon, on my website if you're interested.

https://www.marclittlemore.com/create-pretty-code-screenshot...

If you use VS Code, there are some decent plugins you can use like Polacode. I also like Screely for turning screenshots into browser mockups too.

Re:Create and share images of your source code by shadowoflight on Friday October 15, 2021 @01:01PM (#28880070)
In case you weren't aware of it, MacOS also has a `Shift + Cmd + 5` screenshot shortcut that allows for more configuration (save location; whether to capture the full screen, a window, or a specific area of the screen; and whether to capture an image or a video) - in particular, I find that the screen area capture is better than using `Shift + Cmd + 4`, because you can adjust where the edges of the box are before capturing, rather than needing to get spacing right in one go with the crosshairs.
Re:Create and share images of your source code by marclittlemore on Sunday October 17, 2021 @05:03PM (#28899767)
Nice! I'll document that too. Thanks for sharing.
Re:Create and share images of your source code by powersnail on Friday October 15, 2021 @12:38AM (#28874359)
Your text editor.
Re:Create and share images of your source code by WalterGR on Friday October 15, 2021 @01:24AM (#28874601)
How do I go about upscaling screenshots taken in Windows so that they look good on high DPI screens? Thanks.
Re:Create and share images of your source code by loa_in_ on Friday October 15, 2021 @07:43AM (#28876710)
Don't know about Windows but on Linux I spawn an X session with a virtual framebuffer and arbitrary resolution, spawn a browser there pointed at URL and make a screenshot.
Re:Create and share images of your source code by junon on Friday October 15, 2021 @04:45AM (#28875687)
ctrl + '+'. Increase the font size.
Re:Create and share images of your source code by CRConrad on Friday October 15, 2021 @06:14PM (#28883751)
Was going to suggest this. Make it take up more space on your screen, that's more pixels in the same pic. You might need to do that anyway, if you're on an unusually low (nowadays) resolution: Otherwise the whole pic will be too small to make stuff out on high-res screens.
Re:Create and share images of your source code by scoopertrooper on Friday October 15, 2021 @02:45AM (#28875024)
Increase your screen resolution?
Re:Create and share images of your source code by Kakashi4 on Friday October 15, 2021 @04:05AM (#28875502)
Ah yes. I'll do that right after I download more RAM.
Re:Create and share images of your source code by WalterGR on Friday October 15, 2021 @04:11AM (#28875528)
...

It's already maxed out.

Re:Create and share images of your source code by bmn__ on Friday October 15, 2021 @06:12AM (#28876139)
no, increase virtual screen size
Re:Create and share images of your source code by maple3142 on Friday October 15, 2021 @02:18AM (#28874875)
If you use vscode, maybe you could try this one: https://marketplace.visualstudio.com/items?itemName=pnp.pola...
Re:Create and share images of your source code by aosaigh on Friday October 15, 2021 @05:43AM (#28875976)
Re:Create and share images of your source code by toomanybeersies on Saturday October 16, 2021 @09:47AM (#28887852)
If you're on Mac, there's this really neat trick you can use to create images of your code:

  cmd + shift + f4
Re:Create and share images of your source code by loa_in_ on Friday October 15, 2021 @07:44AM (#28876714)
Spawn an X session with a virtual framebuffer and arbitrary resolution, spawn a VScode instance and make a screenshot.
Re:Create and share images of your source code by yitchelle on Friday October 15, 2021 @02:42AM (#28875006)
Ctrl-C

Ctrl-V

Re:Create and share images of your source code by Cthulhu_ on Friday October 15, 2021 @05:37AM (#28875934)
Twitter has no code syntax highlighting and only allows up to 280 characters.
Re:Create and share images of your source code by CRConrad on Friday October 15, 2021 @06:17PM (#28883778)
No, Ctrl-C in Snipping Tool (or whatever you use for screenshots).