Possible Duplicate:
How to write hidden notes in a LaTeX file?
\documentclass{article}
\def\hide{\iffalse}
\def\show{\hi}
\begin{document}
111111
\hide
222222
\show
333333
\hide
444444
\show
555555
\end{document}
Possible Duplicate:
How to write hidden notes in a LaTeX file?
\documentclass{article}
\def\hide{\iffalse}
\def\show{\hi}
\begin{document}
111111
\hide
222222
\show
333333
\hide
444444
\show
555555
\end{document}
You can use
\let\hide\iffalse
\let\unhide\fi% rather than \show
to achieve your desired result:

\documentclass{article}
\let\hide\iffalse
\let\unhide\fi
\begin{document}
111111 \par
\hide
222222 \par
\unhide
333333 \par
\hide
444444 \par
\unhide
555555
\end{document}
However, the same result is possible using a more controlled approach provided by the comment package:
\documentclass{article}
\usepackage{comment}% http://ctan.org/pkg/comment
\begin{document}
111111 \par
\begin{comment}
222222 \par
\end{comment}
333333 \par
\begin{comment}
444444 \par
\end{comment}
555555
\end{document}
comment allows version control of comment environments.
\showwith\fiI think you will get the desired results. While you are at it, you might as well replace the\showwith\iffalse. – Peter Grill Apr 19 '12 at 03:03\showis already defined by (La)TeX and you have a typo in your code:\hiinstead of\fi. Your code doesn't work, because the\fiis hidden inside the\show. When text is ignored after a\iffalse, macros are not expanded, so the\fiis never found. See also What is an \if? for more info about it. Also How to write hidden notes in a LaTeX file? should be interesting for you. – Martin Scharrer Apr 19 '12 at 06:46