Skip to content

request: print whole page #54

dyoo opened this Issue Feb 19, 2012 · 1 comment

2 participants

dyoo commented Feb 19, 2012

Request from a Stack Overflow user: provide ability to print source code.


This is tricky, since CodeMirror never actually renders the entire program (if it did, we could just change the CSS).We'll have to detect print events programmatically.

There's a cross-browser javascript solution for detecting printEvents here:

All we need to do is add a

node, and fill it with the program contents. Then we can use CSS to make sure that the only thing ever printed is div#print.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.