Lurker News

Comments (123) 33 threads

Earlier comments
ironmagma2 replies#
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.
Shared404#
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.

CGamesPlay1 reply#
Does your editor not have a print menu? I just printed a file from MacVim, looks great on paper.
ironmagma#
It doesn’t (Vscode/Atom). I’ll give MacVim a try, although ideally the tool would print multiple files en masse (perhaps with an ignore list).
offtop5#
This looks really cool, I would love some way to integrate it with a program tutorial.

Anyway you can use some type of cloud IDE to run these examples. For JavaScript that should be pretty easy

amelius#
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.
callmekatootie1 reply#
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

stephenr#
Why on earth would you want to provide a code snippet as an image for that?

Do you want retyping-bugs? That’s how you get retyping-bugs.

Load more comments