code.pyret.org icon indicating copy to clipboard operation
code.pyret.org copied to clipboard

Support printing (to physical paper)

Open dbp opened this issue 1 year ago • 4 comments

Right now, there doesn't seem to be a great way to print files out. Ideally, the print css would have just the definitions panel, and would have the whole file.

Obviously I can download and print using any number of other programs, but they are less likely to have good syntax highlighting, and it seems like something CPO could support!

I've tested this in Chrome, in case there is a mechanism that works in other browsers.

dbp avatar Dec 05 '24 22:12 dbp

Oh fascinating, good request. This ought to be doable.

jpolitz avatar Dec 05 '24 22:12 jpolitz

Having it just print the definitions text is not hard in css.

But I am curious if there are use-cases where someone would want to print the repl output instead, or in addition.

asolove avatar Feb 25 '25 01:02 asolove

Teachers very likely would, for lecture notes.

blerner avatar Feb 25 '25 11:02 blerner

Probably it would be good to also support hiding interactions (I just created this as #583); then the print should just show whatever is visible?

dbp avatar Feb 25 '25 15:02 dbp