[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fold code at {}
From: |
Gary Wessle |
Subject: |
Re: fold code at {} |
Date: |
09 Jan 2007 07:27:31 +1100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
"Robert Thorpe" <rthorpe@realworldtech.com> writes:
> Gary Wessle wrote:
> > Hi
> >
> > how can I fold the c++ code
> > if( xxx ) {
> > ...
> > }else{
> > ...
> > if( ... ){
> > ...
> > }
> > }
>
> What do you want to fold the above into?
>
> > C-c @ C-h will fold only
> > if( xxx ) {
> > ...
> > }else{
> >
> > but not the rest of the parent if block.
>
> Why should the rest of the block be folded?
> I don't think you can do what you want to do with Hide/Show mode.
> Hide/Show mode only responds to scopes in a language, and can only fold
> around them.
>
> Maybe if you could explain the problem again someone could suggest
> something that would help.
I have the if else-if else blocks and want to fold it all. the block
my have nested if blocks as well.