Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why not SVG? #1

Open
codec-abc opened this issue Aug 24, 2021 · 3 comments
Open

Why not SVG? #1

codec-abc opened this issue Aug 24, 2021 · 3 comments

Comments

@codec-abc
Copy link

Hi,

Your series is quite nice. I have a question though, why not using SVG instead of PNG. This will allow you to create link directly inside it. So for instance, you could link your samples to the official Rust documentation and also to the other element in the series (assuming you add more)

@vandadnp
Copy link
Owner

@codec-abc hi and thanks for your engagement.
I would love to be able to create SVGs with code and syntax highlighting. I don't really know how to do that though. Any hints?

@codec-abc
Copy link
Author

I don't think there is an easy way. The hard way would be to try to automate this by creating your own script based on some syntax highlighter. Otherwise you can do manually. Another way, can be to embed the code as an image but use SVG as a format for the links so you still get some good stuff from SVG.

@vandadnp
Copy link
Owner

@codec-abc I've now found a way to do this using Figma, the highlighting might not be perfect, but it's a start! I can give it a go...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants