From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nic Newsgroups: gmane.emacs.devel Subject: Re: PHP mode in Emacs? Date: Sun, 30 Apr 2006 15:37:41 +0100 Message-ID: <87bquj6sei.fsf@nicferrier.tapsellferrier.co.uk> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146408304 5946 80.91.229.2 (30 Apr 2006 14:45:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Apr 2006 14:45:04 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 30 16:44:58 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FaDAP-0005vc-E4 for ged-emacs-devel@m.gmane.org; Sun, 30 Apr 2006 16:44:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FaDAP-0007FO-0F for ged-emacs-devel@m.gmane.org; Sun, 30 Apr 2006 10:44:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FaDAD-0007FI-6K for emacs-devel@gnu.org; Sun, 30 Apr 2006 10:44:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FaDAB-0007F6-4Q for emacs-devel@gnu.org; Sun, 30 Apr 2006 10:44:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FaDAA-0007F3-Vi for emacs-devel@gnu.org; Sun, 30 Apr 2006 10:44:42 -0400 Original-Received: from [81.187.188.218] (helo=owls-house.tapsellferrier.co.uk) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FaDDm-0004H1-DQ for emacs-devel@gnu.org; Sun, 30 Apr 2006 10:48:26 -0400 Original-Received: from [172.31.50.1] (helo=nicferrier.tapsellferrier.co.uk) by owls-house.tapsellferrier.co.uk with esmtp (Exim 4.60 #1 (Debian)) id 1FaD48-0001NC-AE for ; Sun, 30 Apr 2006 15:38:28 +0100 Original-Received: from nferrier by nicferrier.tapsellferrier.co.uk with local (Exim 4.50) id 1FaD3N-0007iz-Kt for emacs-devel@gnu.org; Sun, 30 Apr 2006 15:37:41 +0100 Original-To: emacs-devel@gnu.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 30 Apr 2006 16:30:40 +0200") X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53660 Archived-At: Lars Magne Ingebrigtsen writes: > This is probably something that's been asked a lot, but I can't seem > to find the answer. > > Are there any plans to include a PHP mode in Emacs? Googling around > finds a couple of these modes, one of which is based on mmm-mode. I > can't find any recent developments, though. > > mmm-mode is something that allows you to run several major modes in > one buffer, apparently. Languages like PHP are tricky to write major > modes for, because they mix HTML and PHP in the same buffer. > > So what's up? If none of the existing modes are appropriate for > inclusion, I might be tempted to have a go at it. It is a *really* difficult task because it's not just mixing PHP code and HTML. PHP can also be used to generate other content types. For example, generating XML is quite trivial. So it's not just a case of making a mode that has PHP syntax support _and_ HTML support. Nic