Coder Social home page Coder Social logo

carbon-app / carbon Goto Github PK

View Code? Open in Web Editor NEW
34.0K 34.0K 1.9K 19.67 MB

:black_heart: Create and share beautiful images of your source code

Home Page: https://carbon.now.sh

License: MIT License

JavaScript 99.91% Shell 0.09%
beautiful carbon education github-gist javascript presentation sharing snippets tweet

carbon's People

Contributors

adghayes avatar allcontributors[bot] avatar andrewda avatar aquaductape avatar aymanesarrar avatar boyvanamstel avatar briandennis avatar crimsontome avatar dependabot[bot] avatar drarok avatar fernahh avatar g3r4n avatar greenkeeper[bot] avatar hatsu38 avatar hzooly avatar imbrn avatar jakedex avatar josenoriegaa avatar kant avatar martinfrancois avatar mfix22 avatar mittalyashu avatar mixn avatar molnarmark avatar muhammadmuzzammil1998 avatar rizkytegar avatar timneutkens avatar uraway avatar y1yang0 avatar yeskunall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

carbon's Issues

Feature request: Copy Image to clipboard

It will be really great if there is copy to clipboard option.
Quite helpful when you have to share the image to slack - discord or any other chatting application which supports direct upload.

Screenshot shows text highlighting

If you have some text highlighted on the code snippet it preserves that highlighting when the image is generated.

Not sure if this is desired or not. I unexpectedly generated an image with the highlight when I didn't want it.

Thanks for an awesome resource!

It is a nice tool, but it doesn't work in Safari

I tried to use Carbon in Safari, but it doesn't work.

I copied and paste some code to the window, but when I press the Save Image button, nothing happen.

When I tried in Chrome, worked fine!

Force `Save As` dialog when trying to save the image

Hey guys ๐Ÿ‘‹ great work on Carbon!

Right now, all images are saved as carbon.png by default. This means that if I were to save multiple screenshots in succession, they would all be saved under the same name, with just a number appended to the file name (on Windows as carbon (1).png) and so on.

Maybe we could make it so that the site forces a Save As dialog asking the user to name the file by themselves? Just a suggestion, but I would love to see this implemented. โค๏ธ

Solarized theme has inaccurate colors

This is what code looks like on https://carbon.now.sh/ when I choose the Solarized theme:

lib/constants.js code displayed in Carbon's Solarized theme

But the background color is different from that of the light variant of the official Solarized theme:

official Solarized theme, light version

The background looks white in Carbon, but it should be light yellow. I'm not sure, but the shade of orange used for export const might also not be in Solarized's palette.

Note that Solarized also has a dark theme with the same text colors but a dark blue background. Don't get them confused. Maybe you want to support both as "Solarized (light)" and "Solarized (dark)"?

Carbon CLI

If there's enough support, we could create a CLI interface for Carbon.

Fix `` highlighting for F#

There is an issue with how textual functions names are displayed for F#, please, take a look:

carbon 1

It would be great if words in function name could be colored using the same color.

Use `.github` for GitHub templates

Maybe create a .github/ folder at this point, and move CONTRIBUTING.md inside it? Also, maybe create an ISSUE_TEMPLATE.md and PULL_REQUEST.md?

But most importantly, in lieu of #79, I was thinking that maybe we can add a CONTRIBUTORS.md inside .github/ and link it in README.md instead? This way the README itself doesn't have to get cluttered unnecessarily.

Support Color Picker

Could be awesome be possible open a color picker for setup the background.

This also be possible setup transparent as brakcgorund.

Add Windows theme

I know many devs don't think of Windows but it would be nice to have Windows represented here rather than the assumption that the UI will be OSX.

Safari 11: Save Image

Saving as image doesn't work.

[Error] TypeError: e.replace is not a function. (In 'e.replace(/&/g,"&")', 'e.replace' is undefined)
	t (app.js:21:977311)
	p (app.js:21:982629)
	value (app.js:21:616414)
	value
	value (app.js:21:616248)
	value
	(anonymous function) (app.js:21:1529383)
	bt (app.js:2:23963)
	vt (app.js:2:24238)
	ar (app.js:2:50646)
	pr (app.js:2:53169)
	Za (app.js:2:98526)
	(anonymous function) (app.js:2:147167)
[Error] Unhandled Promise Rejection: [object Event]
	(anonymous function)
	promiseReactionJob

Feature request: Customizable dimensions

First of all, great idea!

I'd like to share some code on Instagram, but it requires me to share only square images.

A greate feature would be the ability to set/change dimensions of the image.

Cheers!

Option to download/copy code from image

Hey guys!

I really love the idea of the code sharing by image and how it get presented. I only found a limitation whenever I want to share my code to be copied by a reader. You guys think this is possible in a future stage?

Wished feature;
Possibility to copy the code shown on the image to an editor.

Read content & preferences from URL query string

This would make sharing links to the page much easier.

For example, https://carbon.now.sh/?code=Hello%20world!&theme=blackboard would pre-fill the editor with "Hello world!" and apply the Blackboard theme. Everything else would fall back to the default settings, of course.

If this would be a welcome addition, I'll open a PR for it.

Make `carbon.now.sh` a PWA

This is something that can start out slow, but if you guys seem interested, I think, IMO, turning carbon.now.sh into a PWA would be super ๐Ÿ‘

The most important think would be to allow caching, and hence enable the site to work offline as well. What do you guys think?

Loving this app so far ๐Ÿ˜

Box shadow size

Hello!

Thank you guys for this useful tool!
I would suggest to add an option to set the size of the box shadow.
(I will try to find the time to create the PR)

Add C# Support

C# is not on the list, either it's not supported or doesn't work properly.

Light themes support

Right now there are not light terminal themes. Some users may want to use white (or similar) terminal background.

I am big fan of light terminal themes like sobole.

Any chance to get a tool to import a custom theme?
Or maybe include some popular light options?

Add C# language support

It would be really great if this service could support syntax highlighting for C# programming language.

Thanks!

C code not highlighted as expected

C or C++ code is not highlighted as I would expect.
I saw that you were using CodeMirror, so I went to see the documentation.

It should at least highlight type names, as seen on this page.
See what I got on Carbon below, with Monokai theme.

I only looked at lib/constants.js and components/Carbon.js and didn't see anything wrong, so I'm not sure what's happening. Maybe a style conflict?

Sample

carbon

Missing Mobile Support

Your website is broken when used on a mobile device. By broken I am referring to the issue that when your website is viewed on a screen less than 893px wide, your website does not allow horizontal scrolling to view parts of the screen that become hidden. A simple way to fix this would be to just allow horizontal scrolling. Another fix would be to use @media queries to adjust for screens smaller than 893px and then again for even smaller screens. And yet another idea would be to use percentages % or viewport width vw

carbon now sh-

Adjust width

I just generated this image:

carbon-1

It'd be great if:

  • I could make the font size bigger (ref #46)
  • but also if I could shrink the width of the code block manually (or it adjust automatically based on longest line)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.