help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: indentation issues when editing a PHP file


From: Marcelo Toledo
Subject: Re: indentation issues when editing a PHP file
Date: Fri, 26 Mar 2004 16:03:59 -0400
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

it is wrong, it forces you to write it as:

class test
{
        function test() {
        }
}

but, as you are saying, i code like:

class test {

      function test()
      {
          code();
      }
}

i am copying to the maintainer of php-mode so he can take a look at
this.

Saifi Khan <saifixkhan@yahoo.com> writes:

> Hi:
>                                                                               
>  
>
> When editing a PHP file, the '{' curly brace
> positions itself as indicated below.
>                                                                               
>  
>
> class Log
> {
>     function log( $msg )
>     ...{
>     ...}
> }
>
> the dots (.) are for indicating the spaces.
>                                                                               
>  
>
> The following indentation style is what I would like to see.
>                                                                               
>  
>
> class Log
> {
>     function log( $msg )
>     {
>     }
> }
>                                                                               
>  
>
> I have spent sometime looking at the .emacs file, indentation options
> and other mails on the mailing list.
>                                                                               
>  
>
> I have been able to setup CCmode for C, C++ and Java,
> however this just beats me.
>
> What options should I place in my php-hook-function ?
> I will appreciate suggestions to solve this problem.
>                                                                               
>  
>
> thanks
> Saifi.
>
> Ps. please see the attached .emacs file
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance Tax Center - File online. File on time.
> http://taxes.yahoo.com/filing.html
>
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

-- 
Marcelo Toledo
marcelo@marcelotoledo.org
http://www.marcelotoledo.org
Mobile: 55 71 9141-7181





reply via email to

[Prev in Thread] Current Thread [Next in Thread]