unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: vincent.marguerit@gmail.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: PHP/HTML indentation
Date: Mon, 30 Jul 2007 15:42:23 +0200	[thread overview]
Message-ID: <46ADEABF.9030303@gmail.com> (raw)
In-Reply-To: <1185799103.065883.34670@19g2000hsx.googlegroups.com>

vincent.marguerit@gmail.com wrote:
> My version of Emacs is 22.1, I use php-mode version 1.2.0 with this is
> in .emacs file:

Unfortunately there are several php-modes out there. You have to tell us 
the author too.

> (global-font-lock-mode 1)
> (require 'php-mode)
> (add-hook 'php-mode-user-hook 'turn-on-font-lock)

Font lock is on by default in Emacs 22.

> The file for which the indentation does not work anymore is
> global_display.inc.php, I have put it here:
> http://boxfly.free.fr/test/php/global_display.inc.phps
> 
> If I go to line 5 and press TAB key, it will auto indent. But if I go
> to line 522 in the function dis_end_main(), the indentation does not
> work anymore.

Thanks, but what code to you have on that line? It looks to me that this 
is the empty line here:

   function dis_end_main() {

     echo "

Anyway, indentation works for me here with the version of php-mode I 
have. I have the version that comes with nXhtml.

** Important: In your case you have just php code and then indentation 
works ok. In the case where the code mixes XHTML and PHP it is 
different, see nXhtml.

> I work under Mac OS X.
> 
> Thanks for your help,
> Vincent.
> 
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
> 

  reply	other threads:[~2007-07-30 13:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-30 11:07 PHP/HTML indentation vincent.marguerit
2007-07-30 11:46 ` Lennart Borgman (gmail)
     [not found] ` <mailman.4121.1185795982.32220.help-gnu-emacs@gnu.org>
2007-07-30 12:38   ` vincent.marguerit
2007-07-30 13:42     ` Lennart Borgman (gmail) [this message]
     [not found]     ` <mailman.4125.1185802953.32220.help-gnu-emacs@gnu.org>
2007-07-30 15:55       ` vincent.marguerit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46ADEABF.9030303@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=vincent.marguerit@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).