I wondered if its possible to embed source code of some software you are writing about into the PDF but not displayed by default. E.g. you have a long script I would be nice if the user/reader could click on a link if he needs details, and see the source code of that script.
Best would be if this can be rendered with syntax highlighting (by listings or minted package).
So far I am only aware of either use ECMAscript (which seems not supported by latex) or by OCG layers, as tooltips. For both I am unsure if they support syntax highlighting.
As a workaround I would do it as in the old days with an appendix and hyperref to it.
Do you have any better suggestion?