From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.devel Subject: Re: web-mode.el Date: Wed, 13 Jun 2012 16:18:26 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1339597185 12655 80.91.229.3 (13 Jun 2012 14:19:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2012 14:19:45 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 13 16:19:45 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 1SeoQ2-0001k8-ES for ged-emacs-devel@m.gmane.org; Wed, 13 Jun 2012 16:19:34 +0200 Original-Received: from localhost ([::1]:60469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeoQ2-0000si-B6 for ged-emacs-devel@m.gmane.org; Wed, 13 Jun 2012 10:19:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeoPv-0000rU-QI for emacs-devel@gnu.org; Wed, 13 Jun 2012 10:19:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeoPp-0005yT-MK for emacs-devel@gnu.org; Wed, 13 Jun 2012 10:19:27 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:55018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeoPp-0005yE-EM for emacs-devel@gnu.org; Wed, 13 Jun 2012 10:19:21 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SeoPd-0000ib-Nq for emacs-devel@gnu.org; Wed, 13 Jun 2012 16:19:09 +0200 Original-Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Jun 2012 16:19:09 +0200 Original-Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Jun 2012 16:19:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 47 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 X-Message-Smtp-Method: smtp smtp.gmail.com 587 rileyrg Mail-Copies-To: never User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:k3P7lDe4AdjPGuVPogcJV40mJ58= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:150925 Archived-At: Bois Francois-Xavier writes: > 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. > > I will release this mode on github after reading your comments/advices. > > Thank you in advance. > > François-Xavier Bois > > ps: sorry for my poor english > just fyi : The git link in the web-mode source doesn't work:- https://github.com/fxbois/web-mode I would be interested to understand more fully what this offers that nxhtml does not. Also, in the auto-mode-alist example here http://fxbois.free.fr/lisp/web-mode.html did you really mean psp as opposed to php? regards r.