Perhaps this is a dumb question.
I write a small pdf-book on coding and use there many examples using listings package.
But the amount of code expands text too much, for every 5 lines of text there is 10-20 lines of listings.
I wish there was a way to show code on demand (like spoiler).
May be there is some format supported by latex which would allow to do such thing ?
tooltipsas suggested by @TorbjørnT., you'd need to use Javascript for something like that. – jub0bs Mar 01 '14 at 19:25