From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "." Newsgroups: gmane.emacs.help Subject: Re: PHP, HTML...? Date: Sat, 08 Jan 2005 09:10:13 GMT Organization: Telia Internet Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1105175653 14729 80.91.229.6 (8 Jan 2005 09:14:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 Jan 2005 09:14:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 08 10:14:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CnCfb-0001WC-00 for ; Sat, 08 Jan 2005 10:14:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CnCqz-00008m-OA for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Jan 2005 04:25:49 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newspeer2.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help,comp.emacs In-Reply-To: Original-Lines: 26 Original-NNTP-Posting-Host: 217.208.134.99 Original-X-Complaints-To: abuse@telia.com Original-X-Trace: newsb.telia.net 1105175413 217.208.134.99 (Sat, 08 Jan 2005 10:10:13 CET) Original-NNTP-Posting-Date: Sat, 08 Jan 2005 10:10:13 CET Original-Xref: shelby.stanford.edu gnu.emacs.help:127737 comp.emacs:87575 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:23207 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23207 two-mode-mode is what you want: (require 'php-mode) (require 'two-mode-mode) (setq auto-mode-alist (append '(("\\.php$" . two-mode-mode) ("\\.php3$" . two-mode-mode) ("\\.php4$" . two-mode-mode)) auto-mode-alist)) jasonb wrote: > Hi > > I'm just beginning to start out with emacs. I was hoping to make it my > preferred editor (going from what I've read about it). > > But I'm frustrated by how difficult it is to get HTML and PHP syntax > highlighting to work. HTML is straight forward, but embedding PHP and > (while retaining tab functionality) is something nobody is able to do > (from reading up on google). > > This was going to be a request for help. But somehow I don't think > anyone has an easy answer (and I dont think there's anything wrong with > expecting an easy answer for getting basic text editing to work) > > Jason