I want to hide the #ifdef and #ifndef block blocks in C. It looks like I will need to use Folding mode or Outline helper mode.
hide-ifdef-mode should do something similar. I did not use it myself, but turned it on and read its description using the commands below. It must be included in emacs.
Mx hide-ifdef-mode Ch m
You can use the folding mode from Cedet