Live data from Hacker News

Carbon – Create and share images of your source code

carbon.now.sh

11–20 of 40 posts

Re: Carbon – Create and share images of your source code

#13
post #4

I love the appearance of it, but there are very few cases where sharing un-copyable blocks of code is actually what you want. Let's say you're making a programming tutorial, or you're publishing an open source library and want to provide a website with code examples. Appearance is important, of course, but your audience will want to copy/paste your examples. I feel like this should be a CSS generator for styling the…

It's _really_ good for Twitter posts. Formatting is non-existent, so sharing an image is unfortunately the best way to do it in-feed. Links to Gists, etc are the best if you don't mind leaving Twitter for sure. That said, if images are a necessity, might as well make it look good with Carbon.

Or just link to pastebin/your-favorite-alternative where someone can view it while looking good + copyable? I get that it isn't "in-feed", but I think most people would prefer that over having to find some OCR software that likes this specific font and feed an image into it.

Re: Carbon – Create and share images of your source code

#14
post #11

People use this in presentations, but wait if you make a mistake across many slides :) I think it’s worth looking into a better way to create presentations with code (there are many).

Slides are often (usually?) shared, which would now be rendered uncopyable.

Re: Carbon – Create and share images of your source code

#15
post #13

Earlier quoted context omitted.

It's _really_ good for Twitter posts. Formatting is non-existent, so sharing an image is unfortunately the best way to do it in-feed. Links to Gists, etc are the best if you don't mind leaving Twitter for sure. That said, if images are a necessity, might as well make it look good with Carbon.

Or just link to pastebin/your-favorite-alternative where someone can view it while looking good + copyable? I get that it isn't "in-feed", but I think most people would prefer that over having to find some OCR software that likes this specific font and feed an image into it.

It's not either/or. You can use this to add an image to your post containing the link. Or a code-snippet website could use code like this to generate preview images to show up on Twitter.

Re: Carbon – Create and share images of your source code

#17
post #10

What are usecases of sharing text as image? Is it to force user type from from image or use OCR to get the text?

For situations where that text needs to be formatted a specific way but can't due to the platform. For example, twitter (where you can/should also include a pastebin, gist, gh repo, etc...) where having an image is better for retention/engagement

Re: Carbon – Create and share images of your source code

#18
post #4

I love the appearance of it, but there are very few cases where sharing un-copyable blocks of code is actually what you want. Let's say you're making a programming tutorial, or you're publishing an open source library and want to provide a website with code examples. Appearance is important, of course, but your audience will want to copy/paste your examples. I feel like this should be a CSS generator for styling the…

How do you share code snippets on Twitter?

You upgrade to a platform that was made for sharing code snippets and not flinging insults and blogspam

Re: Carbon – Create and share images of your source code

#19
post #14
post #11

People use this in presentations, but wait if you make a mistake across many slides :) I think it’s worth looking into a better way to create presentations with code (there are many).

Slides are often (usually?) shared, which would now be rendered uncopyable.

You could include a text file with the full source.

Re: Carbon – Create and share images of your source code

#20
post #3

Aside: if you're using this on a platform where it's easy to actually share the code itself, please don't use this. It might look pretty, but you can't copy from it easily. Plus it's inaccessible unless you've jumped through the hoops to make it so, at which point you might as well just link to the code directly.

Yeah, I've found myself using Carbon for sharing code in my tweets, really it's the only time I use it.

It's already pretty easy to do this without Carbon -- at least on Windows.

1. Hit print screen on your keyboard

2. Select the rectangle area that you want to capture

3. Paste it into a tweet

You don't even need an intermediate image on your computer unless you wanted to crop it before sending it to Twitter.

You may also want to consider a step 0 which is to temporarily bump up the font size in your editor to make it more readable in a tweet.

Post reply on HN