Similar website: https://carbon.now.sh/ . They probably have more themes but I like this conciseness.
Show HN: Ray.so – Create images of your code
111–120 of 129 posts
Re: Show HN: Ray.so – Create images of your code
#112Feature request: This seems half-the-way there to a site I've been wanting for a long time, one that will give you a printer-friendly syntax highlighted view of a codebase.
Re: Show HN: Ray.so – Create images of your code
#113Neat! This solves a problem for me with generating slides that include code snippets. I'm sure it helps with social media images and whatnot as well. It'd be great if you could also get a HTML snippet to embed into a site that would be a11y friendly!
Re: Show HN: Ray.so – Create images of your code
#114Would be awesome if this supported SVG for better accessibility/making code copyable!
Seems like a lot of folks wanna have SVG support. We’ll take a look on how to support it. Do I understand it correctly that this is better to add it to a README?
Re: Show HN: Ray.so – Create images of your code
#115Fun to play with. Most surprising is the auto-indent when typing Clojure code. The #1 missing feature is the ability to select a different typeface. #2 would be the ability to serve up an image from a URL like a pastebin or a-la speedtest.net speed test ( https://www.speedtest.net/result/10946633415.png )
We wanted to keep the customisations simple that’s also why we have curated colors.
When creating a service that allows people to “show off” bits of their code, why stifle them in making it feel like it’s theirs?
Re: Show HN: Ray.so – Create images of your code
#116Earlier quoted context omitted.
Trying to get an input to autofocus with any reliability in browsers is the third hardest problem in computer science.
Fake the cursor if needed
One of the shortcomings of HTML/CSS seems to be that you can not style the cursor a.k.a caret.
Re: Show HN: Ray.so – Create images of your code
#117Re: Show HN: Ray.so – Create images of your code
#118Re: Show HN: Ray.so – Create images of your code
#119Also, there's no syntax option for plain C, but that's an understandable oversight since a good 99% of C's syntax is shared with C++ anyway.
Lastly, when writing C/C++ it auto-detects Objective-C. Just a few things I detected as a primarily C & C++ developer.
Other languages seem to come out great, and it's really a very nifty tool in the end.
Update: C# and Java seem to have a similar lack of coloring.
Re: Show HN: Ray.so – Create images of your code
#120I may be rather opinionated on this, but there are literally community efforts to transcribe memes and other pictures containing text so visually impaired people get access to content, and meanwhile about every 3-4 weeks HN features yet another web app that basically takes human readable text and stores it in one of the most inefficient and inaccessible ways possible. It becomes invisible to screenreaders, impossible…
I think one of the problems here is that people wanna share code snippets on social media, where generally, the other approaches mean linking to an external github gist or similar, which isn't as visible. I'm not sure if I see a good solution, other than suggesting that the "link previews" for social media sites display the code snippet inline, if it's a link to a pastebin/github gists page. Edit: Perhaps something c…
Twitter etc should really already have standardised on a way to store the ALT text in an image so it only ever needs to entered once.
Even GIF has support for text in a couple of different forms.
( Although I learned something new about PNG's support for GIF's text support here: http://www.libpng.org/pub/png/book/chapter11.html#png.ch11.d... )
( I've spent far too long reading the GIF spec in relation to my project that adds audio to GIFs: http://audiogif.rancidbacon.com :) )