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.
That sounds like a cool tool. It seems like Web is probably not the way to go for that though, as printing even just vanilla web pages can be a pain.
I could see something like automating a typesetting tool working however. Edit: Side note, I'm kinda an idiot, so I could be wrong about web not being the right platform.
I need a tool which can split code nicely across pages of a book. And obviously it should output SVG so it looks great on high DPI devices. Another requirement is that sometimes the code should start somewhere in the middle of a page.
I see folks wondering about the use case - so here's one: I created a Github Action for use in Github Actions. The benefits:
- Easy to view and understand the image of the code v/s the code block text when using a mobile device. Why? Easier to scroll images v/s text. - Members will no longer have to rely on the issue reporters and commenters to format their code blocks correctly. Using the in built formatter, the code is always structured properly - Maintainers can style the code blocks to suit their project's language and guidelines and not put the onus of this on the issue reporter / commenter Reference: https://github.com/callmekatootie/carbonate I used Carbon to generate the images in this case - but you get the gist of what one can use images of code for
Comments (123) 33 threads
Earlier commentsI could see something like automating a typesetting tool working however.
Edit: Side note, I'm kinda an idiot, so I could be wrong about web not being the right platform.
Anyway you can use some type of cloud IDE to run these examples. For JavaScript that should be pretty easy
- Easy to view and understand the image of the code v/s the code block text when using a mobile device. Why? Easier to scroll images v/s text.
- Members will no longer have to rely on the issue reporters and commenters to format their code blocks correctly. Using the in built formatter, the code is always structured properly
- Maintainers can style the code blocks to suit their project's language and guidelines and not put the onus of this on the issue reporter / commenter
Reference: https://github.com/callmekatootie/carbonate
I used Carbon to generate the images in this case - but you get the gist of what one can use images of code for
Do you want retyping-bugs? That’s how you get retyping-bugs.
All comments shown.
Couldn't load more comments. Check your connection and try again.