Show HN: Ray.so – Create images of your code
31–40 of 129 posts
Re: Show HN: Ray.so – Create images of your code
#32Re: Show HN: Ray.so – Create images of your code
#33It begs for SVG export.
Re: Show HN: Ray.so – Create images of your code
#34I initially used carbon.now.sh, but they don't have an API, and the community-provided API is pretty slow because it uses a headless browser to generate the image.
Source Code Shots uses VSCode's syntax-highlighting engine, so the highlighting is about as good as you can get and I can fully support a lot of languages that CodeMirror or Highlight.js haven't gotten to.
The docs, https://sourcecodeshots.com/docs, have plenty of examples of how to use it as an API. You can email me at daniel@onegraph.com if there's something you need that it doesn't support.
Re: Show HN: Ray.so – Create images of your code
#35Would be awesome if this supported SVG for better accessibility/making code copyable!
Re: Show HN: Ray.so – Create images of your code
#36Beauty is subjective and I do not resonate with the cliche aesthetic (gradients, flat UI, soft pastel colors, rounded corners). It's a trend and it will come and go. I am inclined towards the timelessness of the International Style, Swiss Graphics, Brutalism, ultra modernist and offensively low-aesthetic-value aesthetics such as: https://git.sr.ht/~sircmpwn/core-go/tree/master/item/server/...
Re: Show HN: Ray.so – Create images of your code
#37Earlier quoted context omitted.
Yeah, we wanted to add an API at some point and also provide a deeper integration with Raycast. What would you like to build with the API?
Say I have code snippets I want to include in a Jekyll blog for example. I could call your API from a pipeline process, store the images and link them from the posts. A plugin would be deeper integration, but an API would just work and would be great already. I guess a similar process could work for other blogging platforms.
Re: Show HN: Ray.so – Create images of your code
#38Re: Show HN: Ray.so – Create images of your code
#39Re: Show HN: Ray.so – Create images of your code
#40Very pretty, though syntax highlighting for HTML seems to be conspicuously absent.