Source minimize/maximize

In !MoinMoin (uses pygments for syntax highlighting) I must add huge parts of source on pages. Sometimes source is so huge , that it disturbs to view page. So, it's possible add to pygments following feature. For example, we have code on 5 strings. I wanna button [+/-], which maximizes to full source/minimizes to 1 string. Like folding in programmer editors, but to full source.