From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Etienne =?UTF-8?Q?Prud=E2=80=99homme?= Newsgroups: gmane.emacs.bugs Subject: bug#25525: 25.1.90; add color highlighting to css mode Date: Wed, 03 May 2017 19:24:42 -0400 Message-ID: <87bmr9r0at.fsf@x230.lts> References: <87mvefh8br.fsf@tromey.com> <1485375833.1960.0@smtp.gmail.com> <1485455113.4245.1@smtp.gmail.com> <1487359774.1998.0@smtp.gmail.com> <1488653191.6153.0@smtp.gmail.com> <1488738524.13864.0@smtp.gmail.com> <871str3b48.fsf@tromey.com> <1490812056.14782.1@smtp.gmail.com> <1492873665.3376.0@smtp.gmail.com> <87lgqpyl6y.fsf@pokyo> <87vapn3l0i.fsf@tromey.com> <87a86wb76k.fsf@x230.lts> <87wp9xegxj.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1493853919 958 195.159.176.226 (3 May 2017 23:25:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 3 May 2017 23:25:19 +0000 (UTC) User-Agent: Emacs/25.2 (gnu/linux) Cc: 25525@debbugs.gnu.org, Simen =?UTF-8?Q?Heggest=C3=B8yl?= To: Tom Tromey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 04 01:25:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d63du-0008VX-3y for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 May 2017 01:25:10 +0200 Original-Received: from localhost ([::1]:39035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d63dy-0007zR-2M for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 May 2017 19:25:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d63dr-0007yT-QL for bug-gnu-emacs@gnu.org; Wed, 03 May 2017 19:25:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d63dm-0001cM-TR for bug-gnu-emacs@gnu.org; Wed, 03 May 2017 19:25:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55157) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d63dm-0001cC-PT for bug-gnu-emacs@gnu.org; Wed, 03 May 2017 19:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d63dm-0008QO-JX for bug-gnu-emacs@gnu.org; Wed, 03 May 2017 19:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Etienne =?UTF-8?Q?Prud=E2=80=99homme?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 May 2017 23:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25525 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 25525-submit@debbugs.gnu.org id=B25525.149385389132364 (code B ref 25525); Wed, 03 May 2017 23:25:02 +0000 Original-Received: (at 25525) by debbugs.gnu.org; 3 May 2017 23:24:51 +0000 Original-Received: from localhost ([127.0.0.1]:53356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d63db-0008Pw-0x for submit@debbugs.gnu.org; Wed, 03 May 2017 19:24:51 -0400 Original-Received: from mail-io0-f193.google.com ([209.85.223.193]:36327) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d63dZ-0008Pj-Eo for 25525@debbugs.gnu.org; Wed, 03 May 2017 19:24:49 -0400 Original-Received: by mail-io0-f193.google.com with SMTP id x86so39059550ioe.3 for <25525@debbugs.gnu.org>; Wed, 03 May 2017 16:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=5B+9eftcFHbeJ55loeSKZygVc7kgGM/vhN+cMF4oPnM=; b=io4njL44Wz3bdJimQsiYa0vNYxqychN9fKvS8fGqUs2sNV9DVzeXFCEN5u+Gt484Sb uZjJr5dWKKc1iNO7Y1ELzt6UtA4ZKAoXMZUz+sjNtVNJ8ANnMwKoI7pGqCmpj/HQ00is yjJGgQw6+iPZ0xQT06RC31VwtqcsDwjaKpK2GiiV0oK5Nr+yPTa/xCwFHdunRvu4EN/E tZXpD54eiYEgf2SwqkpRyyYzI+SZ8qGfYpvvjgFcv0hRN/9llzwPArRXNbjMLjOdOx4v 1j7t1STv/Hy99LYmueRy+ivflJ/gwz0R8Id0MXf53rz3pBdYhkP8IQY8hNmWFoW6tMlL 6bpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=5B+9eftcFHbeJ55loeSKZygVc7kgGM/vhN+cMF4oPnM=; b=jefoANPjqLFtoXOqyDa/tA1PPhUfBLCoHCDV/Hu+Ey6J7tIJwYB38LpTq4iEzoyir0 37x04ZHoUYz94bKsioxpD9XunJ700N4gVXhA2u6Y/plYsydSqFVYSX/i6OxNbJ7yvLQC VrFgaVvpZDi4dI//inzEMeA3yPYKQhKuI8GbjOpb00t351ao4z1o/9MDle8HaJ6XxeKj nQ5EZM4btUu4C3vM9eXQF2Z/ppdp/+lhLtJw82qhY2daGWW7oAK53nlVsTuUo0q8NUsv iaXVKDPqZB8Q+gPfs4ztBFUTjy0I1WkAYwqTiCjhH3MgOQZkk7jy77s8u3059+ePY3yv /pFw== X-Gm-Message-State: AN3rC/4YfAJxpp5fh1zkAqQkjQU6y3k2ItJU6uDl6gyH8i51m58UgSiJ lCK8D6RMLJpiNQ== X-Received: by 10.107.8.154 with SMTP id h26mr10842955ioi.111.1493853883814; Wed, 03 May 2017 16:24:43 -0700 (PDT) Original-Received: from localhost (modemcable232.49-20-96.mc.videotron.ca. [96.20.49.232]) by smtp.gmail.com with ESMTPSA id 77sm2429924ios.19.2017.05.03.16.24.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 May 2017 16:24:42 -0700 (PDT) In-Reply-To: <87wp9xegxj.fsf@tromey.com> (Tom Tromey's message of "Wed, 03 May 2017 16:03:52 -0600") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132239 Archived-At: Tom Tromey writes: > I think it would be good, but it would require more than just a CSS > parser - you also need the DOM, so you'd need a way for Emacs to > associate CSS and HTML files. > > Tom Of course, I wasn=E2=80=99t talking about HTML. CSS is not confined only to HTML. Sure HTML (the DOM) can set styles, but the styles are coming from either an external style sheet or the browser default style sheet. CSS in itself is a set of cascading style rules that apply according to a tree structure. What we could do with the parser is to tell us which rules are applied in a given node path. We could even apply CSS to the Emacs widget system (although it would require lots of work). -- Etienne