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

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

Re: PHP/HTML indentation


From: vincent . marguerit
Subject: Re: PHP/HTML indentation
Date: Mon, 30 Jul 2007 05:38:23 -0700
User-agent: G2/1.0

On 30 juil, 12:46, "Lennart Borgman (gmail)"
<lennart.borg...@gmail.com> wrote:
> vincent.margue...@gmail.com wrote:
> > Hello,
>
> > I have a big PHP file with some HTML inside ans sometimes the auto
> > indentation with the TAB key does not work !
> > And I have no specific message in the buffer *Message*
>
> > Does anyone what I should do to make it work again ?
>
> Please give more information. What version of Emacs are you using? Are
> you using a php-mode? Which?

My version of Emacs is 22.1, I use php-mode version 1.2.0 with this is
in .emacs file:
(add-hook 'text-mode-hook 'iso-accents-mode)
(set-terminal-coding-system 'latin-1)
(set-keyboard-coding-system 'latin-1)
(set-language-environment 'latin-1)
(set-foreground-color "wheat")
(set-background-color "DarkSlateGray")
(set-cursor-color "white")
(menu-bar-mode -1)
(scroll-bar-mode -1)
(global-font-lock-mode 1)
(require 'php-mode)
(add-hook 'php-mode-user-hook 'turn-on-font-lock)
(add-hook 'php-mode-user-hook
'(lambda () (define-abbrev php-mode-abbrev-table "ex" "extends")))


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.

I work under Mac OS X.

Thanks for your help,
Vincent.



reply via email to

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