[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PHP/HTML indentation
From: |
Lennart Borgman (gmail) |
Subject: |
Re: PHP/HTML indentation |
Date: |
Mon, 30 Jul 2007 15:42:23 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070716 Thunderbird/2.0.0.5 Mnenhy/0.7.5.666 |
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