You know all of those code screenshots you see on Twitter? Although the code’s usually impressive, we saw room for improvement in the aesthetic department. Carbon is the easiest way to create beautiful images of your source code.
Carbon is free to use and open-source tool to crete beautifull screenshots of your code to share.
How do I use it?
There are a few different ways to import code into Carbon:
- Drop a file into the editor
- Append a GitHub gist id to the url (example)
- Paste your code directly
Once you’ve got all of your code into Carbon, you can customize your image by changing the syntax theme, background color/image, window theme, or padding.
You can even drop an image file onto the editor to set the background to that image. Give it a try!
After you’ve customized your image you can Tweet a link to the image, or save it directly.