# How do I hide some of Input

I have a project with a friend, and we make some work in Mathematica. He is not very good at Mathematica, and I have made some long necessary formulas we need. I would like to show what I've made but only show what's important. Therefore I need to hide some of the input but not all of it.

I have made some research and found this:

AutoCollapse[] := (If[$FrontEnd =!=$Failed,SelectionMove[EvaluationNotebook[], All, GeneratedCell];
FrontEndTokenExecute["SelectionCloseUnselectedCells"]])

The problem with this is it hides all input when used. The example i made below, is it possible in some way, or do I have to break it up into two different inputs?

"In(1):
1+1
3+3
Out(2):
1+1
2+2
3+3"
-
Can't you simply fold/close/collapse the input cells that you want to hide? – R. M. Apr 14 '13 at 17:55
If you double click an output cell's cell bracket, the input cell grouped together with it will be hidden. Is this what you are looking for? – Szabolcs Apr 14 '13 at 18:07
Have a look here: mathematica.stackexchange.com/q/2977/131 – Yves Klett Apr 14 '13 at 18:12
– R. M. Apr 14 '13 at 18:57
@rm-rf It is that function I need, but it must be as a formula. When I Evaluate Notebook they all gets shown again. – Jens Jensen Apr 14 '13 at 19:07