From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: web-mode.el Date: Tue, 12 Jun 2012 13:37:23 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1339501097 27794 80.91.229.3 (12 Jun 2012 11:38:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2012 11:38:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Bois Francois-Xavier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 12 13:38:15 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SePQG-00014c-Jy for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2012 13:38:08 +0200 Original-Received: from localhost ([::1]:35974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SePQG-0001Jt-Fs for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2012 07:38:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SePQ9-0001JT-Qt for emacs-devel@gnu.org; Tue, 12 Jun 2012 07:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SePQ5-0005R5-3c for emacs-devel@gnu.org; Tue, 12 Jun 2012 07:38:01 -0400 Original-Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:42148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SePQ4-0005Q5-Pj for emacs-devel@gnu.org; Tue, 12 Jun 2012 07:37:57 -0400 Original-Received: by lahi5 with SMTP id i5so4418123lah.0 for ; Tue, 12 Jun 2012 04:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=u+pbBQqD4yoRAAiHCU4CwWDeLFnTB988RJAePJNW6ow=; b=ldTXYV7n+HrH2+1EkZCkKQ8lGbHPun6Y4EIuQ6/iV/KFtCY0hhXXkWDzz5BL64ElZY VQYoGlJzR6PI4RgKtjCLT5qBii3/NSZzcOfiZXypuBwJw7/S/Xq8sFYKulxVU3PnPX7N w2O/JFI69s7dCwa1IKTRwK+5HqCLP90o4EnsdWN+oIqJeQ0xcKRiF7mw/YMmwQNcwtxA LF3OJGwTDUqJCLrDLErUXx+cKn3A/dWz9+R5vjwxe02cVv1SwlUp4ArWbifvST+H131Z es60A1Ea6Nr1W1TW4PaQl2S8PL077XpW+Efl1ZiKol+uvoqQyFtBgInu16r2gdbw//sU qf3w== Original-Received: by 10.152.108.144 with SMTP id hk16mr20228258lab.2.1339501073496; Tue, 12 Jun 2012 04:37:53 -0700 (PDT) Original-Received: by 10.112.41.99 with HTTP; Tue, 12 Jun 2012 04:37:23 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150903 Archived-At: On Tue, Jun 12, 2012 at 12:24 AM, Bois Francois-Xavier wrote: > > Dear Emacsians, > > I've written web-mode.el, a major mode for PHP/HTML templates files. > It aims to natively indent and syntaxcolor according to the "context" > of (point) (which can be in an HTML part or in a PHP/JavaScript/CSS > bloc). > As it is my first experience with emacs lisp programming, I would be > really grateful to receive your feedbacks on any aspect of this mode > (core programming, function/var naming, conventions, etc.). For many > aspects, I wonder if I use hacks or correct ways to do the job (ex. I > look at the face name in my indent function to know if (point) is in a > comment or a string). > The mode is available here: > http://fxbois.free.fr/lisp/web-mode.el > > I will also publish a web page which will look like this: > http://fxbois.free.fr/lisp/web-mode.html > > Perhaps you also have comments about it. Dear Bois, have you compared the functionality in web-mode.el with that you can get with nXthml? (See EmacsWiki for links.)