Re: PHP fold html

2006-06-29 Thread Silent1

if i switch the foldmethod to marker all my functions/classes will
unfold. The reason i created that other fold syntax is to be able to
fold what ever i want inside syntax fold mehtod. Now i just need to be
able to do now is to be able to fold html inside the syntax
foldmethod. Thanks in advance.

On 6/28/06, Peter Hodge <[EMAIL PROTECTED]> wrote:

Hi,

You can achieve this by setting setting foldmethod=marker, which automatically
creates folds at all {{{ and }}} pairs.  See :help fold-marker for more
information.  Adding to the syntax file should not be necessary.

regards,
Peter




--- Silent1 <[EMAIL PROTECTED]> wrote:

> i added this to the default php syntax file so i can create folds with
> //{{{ //}}} anywhere in my php.
>
> syn regionphpParent   matchgroup=Delimiter start="//{{{" end="//}}}"
> contained [EMAIL PROTECTED],phpFoldHtmlInside transparent fold
>
> It works great but i would like to fold html sections of my php file
> as well, with the same syntax above. So something like this i would
> like to fold,
>
>  //{{{fold html
> ?>
> 
> 
> more html
> 
> 
>  //}}}
> ?>
>
> Thanks
>





The LOST Ninja blog: Exclusive clues, clips and gossip.
http://au.blogs.yahoo.com/lostninja




Re: PHP fold html

2006-06-28 Thread Peter Hodge
Hi,

You can achieve this by setting setting foldmethod=marker, which automatically
creates folds at all {{{ and }}} pairs.  See :help fold-marker for more
information.  Adding to the syntax file should not be necessary.

regards,
Peter




--- Silent1 <[EMAIL PROTECTED]> wrote:

> i added this to the default php syntax file so i can create folds with
> //{{{ //}}} anywhere in my php.
> 
> syn regionphpParent   matchgroup=Delimiter start="//{{{" end="//}}}"
> contained [EMAIL PROTECTED],phpFoldHtmlInside transparent fold
> 
> It works great but i would like to fold html sections of my php file
> as well, with the same syntax above. So something like this i would
> like to fold,
> 
>  //{{{fold html
> ?>
> 
> 
> more html
> 
> 
>  //}}}
> ?>
> 
> Thanks
> 





The LOST Ninja blog: Exclusive clues, clips and gossip. 
http://au.blogs.yahoo.com/lostninja 



PHP fold html

2006-06-28 Thread Silent1

i added this to the default php syntax file so i can create folds with
//{{{ //}}} anywhere in my php.

syn region  phpParent   matchgroup=Delimiter start="//{{{" end="//}}}"
contained [EMAIL PROTECTED],phpFoldHtmlInside transparent fold

It works great but i would like to fold html sections of my php file
as well, with the same syntax above. So something like this i would
like to fold,




more html




Thanks