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: web-mode.el Date: Tue, 12 Jun 2012 00:24:41 +0200 Message-ID: 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 1339468848 2081 80.91.229.3 (12 Jun 2012 02:40:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2012 02:40:48 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 12 04:40:47 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 1SeH2E-0008O6-4T for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2012 04:40:46 +0200 Original-Received: from localhost ([::1]:36248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeH2D-0003nU-VN for ged-emacs-devel@m.gmane.org; Mon, 11 Jun 2012 22:40:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeD2o-0006TT-Ha for emacs-devel@gnu.org; Mon, 11 Jun 2012 18:25:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeD2m-0006fA-NT for emacs-devel@gnu.org; Mon, 11 Jun 2012 18:25:06 -0400 Original-Received: from mail-yw0-f41.google.com ([209.85.213.41]:65501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeD2m-0006YF-Ge for emacs-devel@gnu.org; Mon, 11 Jun 2012 18:25:04 -0400 Original-Received: by yhr47 with SMTP id 47so3571428yhr.0 for ; Mon, 11 Jun 2012 15:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=C632LJ447hKs1D0y353KC0eTpTf0TGX23bLSP8AOkgU=; b=L9zrrA49pTaX34O1697fsCP6D5cIu7EGzmNBct6P9Ykxc7XEY8NXoJj2GmrEyHbNF4 dieRT68aN76PZkjbAxy5z7eiXcXAsecFgkHdmqVqZSoUaqEaXs0KW9reALnONvv90yB0 F48WdofyAUR4jyFU21SBcdqHRHhkkKN6mpfjn3dbwZIlwnnvXZzK+F0fIbYA2/QjzgEe 4634Iui2pUxvO+qiB1dgHgXykmZCx/NtQFIBLuV25PEZs7iMgKk2bBroG5gTk14V7Aqa kTiwSNATVpuDHGJjzIuKOohPMP+sPOoskiTOk2g8lErslSa6uSfT5JdCu7Du/2ftMAQ/ C52g== Original-Received: by 10.50.168.1 with SMTP id zs1mr7432283igb.45.1339453501536; Mon, 11 Jun 2012 15:25:01 -0700 (PDT) Original-Received: by 10.50.214.36 with HTTP; Mon, 11 Jun 2012 15:24:41 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.41 X-Mailman-Approved-At: Mon, 11 Jun 2012 22:40:44 -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:150895 Archived-At: 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=C3=A7ois-Xavier Bois ps: sorry for my poor english