Want to share a snippet of code and at the same time want it to look good? Here's brought to you Carbon
With Carbon you can just type/paste your code or just drag and drop a file and create wonderful images like this
- You can login to your Github to store your snippets in carbon
- First of all go to https://carbon.now.sh
- Select the theme you want. I have used Seti in the above theme
- Select the language your code is written in
- You can select a colour or an image for the background of your code
- Click on the settings button to tweak various configurations, like creating presets for the snippets, font family, size, line height and much more
- You can copy to clipboard the code snippet in the form of:
- Plain URL
- You can tweet your snippet. Pretty cool, hunh?
- You can export your snippet in the form of png or svg, change size of the image, and change the file name
Now, no more sharing code as text messages... Just export them to images with carbon!