From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bois Francois-Xavier Newsgroups: gmane.emacs.devel Subject: Re: web-mode.el Date: Tue, 12 Jun 2012 15:23:04 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1339514913 17705 80.91.229.3 (12 Jun 2012 15:28:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2012 15:28:33 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 12 17:28:32 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 1SeT1B-0008Eq-46 for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2012 17:28:29 +0200 Original-Received: from localhost ([::1]:42861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeT1A-0007de-Ti for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2012 11:28:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeR4G-0003C0-7f for emacs-devel@gnu.org; Tue, 12 Jun 2012 09:23:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeR4B-0002L1-9Z for emacs-devel@gnu.org; Tue, 12 Jun 2012 09:23:31 -0400 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:63561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeR4B-0002KL-3d for emacs-devel@gnu.org; Tue, 12 Jun 2012 09:23:27 -0400 Original-Received: by yenm7 with SMTP id m7so4050872yen.0 for ; Tue, 12 Jun 2012 06:23:25 -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 :content-type:content-transfer-encoding; bh=+IEG/V3t8NvrME3e2o18J3kSinidqR2OfQJUeSeFt0A=; b=wh+OUXQLNGUIAJ3kRQ0jfFWpJzYx5DbwhmSaIxHtxonA5Scwk0/IbGrbRdv3kzSoJU BQMwwxPK/5A8BunPQo9fY3jOfH3+hGVqefcehLnMl6HVF2zhUaQ1JE1txioVvOe4BDsE yOsZKhKNCDcqoqPCeK3U2k6dGoizIznzwc/AwzlmQoS9Uz4/yN1loKAz4ozERr0/o+kp A7RjBLwSnqqLX+n7tYZDDlkZpqjG1cePUW3DXLurSH1s9+VIF+Hzh5La3NGXwhY6NpcW Hr5sTczMfCKsSoh84q0j90/v6wlahz2JvIMkGegOMsFxQLyUOaE8s0OYSe9F7w0wDzI0 g2iw== Original-Received: by 10.50.159.231 with SMTP id xf7mr8282146igb.7.1339507405125; Tue, 12 Jun 2012 06:23:25 -0700 (PDT) Original-Received: by 10.50.214.36 with HTTP; Tue, 12 Jun 2012 06:23:04 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.169 X-Mailman-Approved-At: Tue, 12 Jun 2012 11:28:27 -0400 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:150910 Archived-At: Dear Lennart Yes before starting this project I tried almost all other alternatives and none of them really fully worked for me. That's why I started web-mode.el ; I use it now almost every day for a few months. Features that were really important for me are : - indentation (in particular HTML tags, HTML attributes, PHP arrays or function calls spanning on multiple lines) - coherent syntax highlighting (according to the context) - centralization (config) - HTML element navigation - maintainability, evolutivity - speed On Tue, Jun 12, 2012 at 1:37 PM, Lennart Borgman wrote: > 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.) --=20 Fran=C3=A7ois-Xavier BOIS KerniX Software 15, rue Cels 75014 PARIS tel : 01 53 98 73 43 fax : 01 53 98 73 45