[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com) [![MIT License](https://img.shields.io/github/license/dawnlabs/carbon.svg)](https://github.com/dawnlabs/carbon/blob/master/LICENSE) [![Greenkeeper badge](https://badges.greenkeeper.io/dawnlabs/carbon.svg)](https://greenkeeper.io/) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/carbon-now)

[![Deploy to now](https://deploy.now.sh/static/button.svg)](https://deploy.now.sh/?repo=https://github.com/dawnlabs/carbon&env=TWITTER_CONSUMER_KEY&env=TWITTER_CONSUMER_SECRET&env=TWITTER_ACCESS_TOKEN_KEY&env=TWITTER_ACCESS_TOKEN_SECRET&env=LOGS_SECRET_PREFIX) ##### 翻译 - [Español](/docs/README.es.md) - [हिंदी](/docs/README.hi.md) - [Deutsch](/docs/README.de.md) ## 简介 你见过推特上面的 [这](https://twitter.com/dan_abramov/status/890191815567175680) [些](https://twitter.com/reactjs/status/890511993261654017) [代码](https://twitter.com/notquiteleo/status/873483329345028096) [图片](https://twitter.com/zeithq/status/805779711154647040) 吗? 虽然这些代码图片给人印象深刻,但就审美程度来说还有可改进的地方。Carbon可以很容易的为你的代码创建漂亮的图片。那么还等什么呢?用这个新学到的美化设计给你的followers秀一秀吧。 可以访问 [carbon.now.sh](https://carbon.now.sh)或者浏览 [博客文章](https://dawnlabs.io/case-studies/carbon/) 了解关于这个项目更多的内容。 ## 特性 * **GitHub gist导入**. 只需要在url后面加上github gist id就可以导入 * **定制化**. 可定制图片的语法主题,窗口样式等 * **所见即分享**. 点下鼠标就可以分享到推特上面 ## 示例

## 使用 #### 导入 有几种不同的方法可以将代码导入到Carbon: - 把文件拖到编辑器 - 在carbon url后添加GitHub gist id(比如 `carbon.now.sh/你的gist id`) - 直接粘贴代码 #### 定制化 当你把代码导入到Carbon后,你可以定制生成的代码图片。可定制的内容有语法主题,背景颜色,窗口主题,或者padding距离。 #### 导出/分享 当你定制完图片样式后,可以分享到推特上面,或者直接保存。 ## 社区 下面是我们社区已经创建的一些优秀的项目: ##### 编辑器插件 - [IntelliJ IDEA `carbon-now-sh`](https://plugins.jetbrains.com/plugin/10469-carbon-now-sh) - 在IntelliJ IDEA中选中当前文件的一段代码到Carbon中 - [Atom `carbon-now-sh`](https://atom.io/packages/carbon-now-sh) - 用`shift-cmd-A`命令在Carbon中导入你当前的Atom文件 - [VS Code `carbon-now-sh`](https://marketplace.visualstudio.com/items?itemName=ericadamski.carbon-now-sh) - 用`carbon`命令在Carbon中导入你当前的VS Code文件 - [Sublime Text 3 `carbon-now-sh`](https://github.com/molnarmark/carbonSublime) - 在Sublime Text3中选中当前文件的一段代码到Carbon中 - [Vim `carbon-now-sh`](https://github.com/kristijanhusak/vim-carbon-now-sh) - 用`CarbonNowSh()`函数在Carbon中导入你当前的Vim/Neovim文件 - [Emacs `carbon-now-sh`](https://github.com/veelenga/carbon-now-sh.el) - 用交互式函数`carbon-now-sh`在Carbon中导入你当前的Emacs文件 ##### 命令行工具 - [CLI `carbon-now-cli`](https://github.com/mixn/carbon-now-cli) - 在Carbon中打开一个文件或者直接使用`carbon-now`下载它,特色是交互式模式,可选高亮等 ##### Libraries - [R `carbonate`](https://yonicd.github.io/carbonate/) - 迭代式处理`R`中的图片并在Carbon中打开,或者直接下载。 ##### 书籍 - ["CS 101 - An Introduction to Computational Thinking"](https://itunes.apple.com/us/book/id1435714196) - Sarbo Roy写的一本计算机科学书. ## 贡献代码 欢迎PRs!请阅读 [CONTRIBUTING.md](https://github.com/dawnlabs/carbon/blob/master/.github/CONTRIBUTING.md) 了解更多. ## 感谢 [ ▲ ZEIT ](https://zeit.co/) 赞助了Carbon网站的托管 ## 作者 Carbon项目由TA们发起 - Mike Fix ([@mfix22](https://github.com/mfix22)) - Brian Dennis ([@briandennis](https://github.com/briandennis)) - Jake Dexheimer ([@jakedex](https://github.com/jakedex)) ## 贡献者 感谢以下所有的优秀贡献者们 ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): | [
briandennis](https://github.com/briandennis)
[💻](https://github.com/dawnlabs/carbon/commits?author=briandennis "Code") [📖](https://github.com/dawnlabs/carbon/commits?author=briandennis "Documentation") [🚇](#infra-briandennis "Infrastructure (Hosting, Build-Tools, etc)") [👀](#review-briandennis "Reviewed Pull Requests") | [
mfix22](https://github.com/mfix22)
[💬](#question-mfix22 "Answering Questions") [💻](https://github.com/dawnlabs/carbon/commits?author=mfix22 "Code") [🤔](#ideas-mfix22 "Ideas, Planning, & Feedback") | [
jakedex](https://github.com/jakedex)
[💬](#question-jakedex "Answering Questions") [💻](https://github.com/dawnlabs/carbon/commits?author=jakedex "Code") [🎨](#design-jakedex "Design") [📹](#video-jakedex "Videos") | [
andrewda](https://github.com/andrewda)
[💬](#question-andrewda "Answering Questions") [💻](https://github.com/dawnlabs/carbon/commits?author=andrewda "Code") [🐛](https://github.com/dawnlabs/carbon/issues?q=author%3Aandrewda "Bug reports") [👀](#review-andrewda "Reviewed Pull Requests") | [
yeskunall](https://github.com/yeskunall)
[💻](https://github.com/dawnlabs/carbon/commits?author=yeskunall "Code") [📖](https://github.com/dawnlabs/carbon/commits?author=yeskunall "Documentation") [🔧](#tool-yeskunall "Tools") [🐛](https://github.com/dawnlabs/carbon/issues?q=author%3Ayeskunall "Bug reports") | [
stoshfabricius](https://github.com/stoshfabricius)
[💻](https://github.com/dawnlabs/carbon/commits?author=stoshfabricius "Code") | [
jkling38](https://github.com/jkling38)
[📖](https://github.com/dawnlabs/carbon/commits?author=jkling38 "Documentation") | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | | [
otobrglez](https://github.com/otobrglez)
[💻](https://github.com/dawnlabs/carbon/commits?author=otobrglez "Code") | [
darahak](https://github.com/darahak)
[📖](https://github.com/dawnlabs/carbon/commits?author=darahak "Documentation") | [
dom96](https://github.com/dom96)
[💻](https://github.com/dawnlabs/carbon/commits?author=dom96 "Code") | [
elrumordelaluz](https://github.com/elrumordelaluz)
[💻](https://github.com/dawnlabs/carbon/commits?author=elrumordelaluz "Code") | [
cjb](https://github.com/cjb)
[💻](https://github.com/dawnlabs/carbon/commits?author=cjb "Code") | [
Krzysztof-Cieslak](https://github.com/Krzysztof-Cieslak)
[💻](https://github.com/dawnlabs/carbon/commits?author=Krzysztof-Cieslak "Code") | [
fernahh](https://github.com/fernahh)
[📖](https://github.com/dawnlabs/carbon/commits?author=fernahh "Documentation") | | [
g3r4n](https://github.com/g3r4n)
[💻](https://github.com/dawnlabs/carbon/commits?author=g3r4n "Code") | [
Mat Gadd](http://drarok.com/)
[🐛](https://github.com/dawnlabs/carbon/issues?q=author%3ADrarok "Bug reports") [💻](https://github.com/dawnlabs/carbon/commits?author=Drarok "Code") | [
Brad Davies](https://bradlab.co.uk)
[🐛](https://github.com/dawnlabs/carbon/issues?q=author%3Avarbrad "Bug reports") [💻](https://github.com/dawnlabs/carbon/commits?author=varbrad "Code") | [
Rafael Câmara](http://www.rafaelcamaram.com/)
[💻](https://github.com/dawnlabs/carbon/commits?author=rafaelcamaram "Code") | [
Gleb Bahmutov](https://glebbahmutov.com/)
[⚠️](https://github.com/dawnlabs/carbon/commits?author=bahmutov "Tests") [🔧](#tool-bahmutov "Tools") | [
Iván Munguía](https://ivan-munguia.netlify.com)
[💻](https://github.com/dawnlabs/carbon/commits?author=warborn "Code") | [
Dillon Mulroy](https://dillonmulroy.com)
[💻](https://github.com/dawnlabs/carbon/commits?author=dmmulroy "Code") | | [
Nihad Abbasov](https://github.com/NARKOZ)
[💻](https://github.com/dawnlabs/carbon/commits?author=NARKOZ "Code") | [
Hugo Torzuoli](https://torzuolih.github.io)
[📖](https://github.com/dawnlabs/carbon/commits?author=TorzuoliH "Documentation") | [
Bruno C. Couto](https://github.com/imbrn)
[💻](https://github.com/dawnlabs/carbon/commits?author=imbrn "Code") | [
Mark Molnar](https://github.com/molnarmark)
[💻](https://github.com/dawnlabs/carbon/commits?author=molnarmark "Code") | [
Takahiko Inayama](https://www.behance.net/tetra2000)
[💻](https://github.com/dawnlabs/carbon/commits?author=TETRA2000 "Code") | [
François Martin](https://github.com/martinfrancois)
[💻](https://github.com/dawnlabs/carbon/commits?author=martinfrancois "Code") | [
Raphael Amorim](http://raphamorim.io)
[💻](https://github.com/dawnlabs/carbon/commits?author=raphamorim "Code") | | [
Camron Flanders](http://camronflanders.com)
[💻](https://github.com/dawnlabs/carbon/commits?author=camflan "Code") | [
Eric Adamski](https://ericadamski.github.com)
[💻](https://github.com/dawnlabs/carbon/commits?author=ericadamski "Code") | [
Winner Crespo](http://winnercrespo.com)
[💻](https://github.com/dawnlabs/carbon/commits?author=wistcc "Code") [🎨](#design-wistcc "Design") | [
Milos](http://twitter.com/mixn)
[💻](https://github.com/dawnlabs/carbon/commits?author=mixn "Code") [🔧](#tool-mixn "Tools") [📖](https://github.com/dawnlabs/carbon/commits?author=mixn "Documentation") [🌍](#translation-mixn "Translation") | [
Yashu Mittal](https://mittalyashu.now.sh/)
[💻](https://github.com/dawnlabs/carbon/commits?author=mittalyashu "Code") | [
Rachel M. Carmena](https://twitter.com/bberrycarmen)
[📖](https://github.com/dawnlabs/carbon/commits?author=rachelcarmena "Documentation") | [
Miguel Salazar](https://www.linkedin.com/in/miguel-salazar-823b07a1/)
[📖](https://github.com/dawnlabs/carbon/commits?author=ucdstudent95618 "Documentation") [🌍](#translation-ucdstudent95618 "Translation") | | [
Vyom Jain](https://www.linkedin.com/in/vyom-jain-233a28139)
[📖](https://github.com/dawnlabs/carbon/commits?author=vvyomjjain "Documentation") [🌍](#translation-vvyomjjain "Translation") | [
racaljk](http://www.cnblogs.com/racaljk/)
[🌍](#translation-racaljk "Translation") | [
Sean](https://lastblocklabs.com)
[💻](https://github.com/dawnlabs/carbon/commits?author=raboid "Code") | [
Izabela Borges](http://izabelacborges.com/)
[🌍](#translation-izabelacborges "Translation") |