Live data from Hacker News

Show HN: Ray.so – Create images of your code

ray.so

111–120 of 129 posts

Re: Show HN: Ray.so – Create images of your code

#111

Similar website: https://carbon.now.sh/ . They probably have more themes but I like this conciseness.

I like Carbon, the option of creating new themes and saving snippets. Is the project still alive? I got a message from Open Collective [0] saying they stopped accepting donations.

[0] https://opencollective.com/carbon-app

Re: Show HN: Ray.so – Create images of your code

#112

Feature 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.

Does your editor not have a print menu? I just printed a file from MacVim, looks great on paper.

Re: Show HN: Ray.so – Create images of your code

#113

Neat! 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!

This may not work for your case, but if you're good with Vim you could try the `:TOhtml` command, which converts a range into an HTML file matching the theme you're using.

Re: Show HN: Ray.so – Create images of your code

#114
post #32

Would 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?

IMHO if your code snippet image isn't scale invariant, I'd rather just take a literal screenshot with my editor. From my experiences with Carbon they don't support SVGs well - could be that it's a hard problem.

Re: Show HN: Ray.so – Create images of your code

#115

Fun 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.

But why? I have very strong feelings about the look and feel of my code/coding environment and there’s no way I’m alone in this.

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

#116

Earlier 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

How do you make a fake cursor that works? When you click anywhere within the text, how do you know where to position the fake-cursor then? If you use arrow-keys it should move the cursor left and right and up and down respecting the line- and character boundaries.

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

#119
Either I'm doing something wrong or there isn't really any syntax highlighting for C++, other than numbers and strings.

Also, 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

#120

I 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…

Yeah, I was just about to suggest embedding the code in a PNG text chunk: http://www.libpng.org/pub/png/book/chapter11.html#png.ch11.d...

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 :) )

Post reply on HN