From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: Colorizing source code in Info manuals Date: Wed, 11 Dec 2024 16:04:06 -0500 Message-ID: References: <87ttbh4v5l.fsf@web.de> <7d677941-c468-469a-acee-b0935097605a@imayhem.com> <7cc30358-1412-4845-8f2d-efce17543cfd@imayhem.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f806dd062904f011" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40132"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Cecilio Pardo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 11 22:05:18 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tLTtV-000AG1-R8 for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Dec 2024 22:05:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLTsm-000496-36; Wed, 11 Dec 2024 16:04:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLTse-00048l-Dt for emacs-devel@gnu.org; Wed, 11 Dec 2024 16:04:24 -0500 Original-Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLTsc-0001fR-RS for emacs-devel@gnu.org; Wed, 11 Dec 2024 16:04:24 -0500 Original-Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-30034ad2ca3so40508681fa.1 for ; Wed, 11 Dec 2024 13:04:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733951060; x=1734555860; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0lJfhklsuiMlOUFpFBEx5Oh/2+xg9q5fUnM830/hSBw=; b=LVADMG9oKU8XhOdRSvvC4OY1FranndFtCzY9b5xdrLYfB35+tWzf9vE/+Sp7ELh0fN wFvxzGG22SSLYph/0Ra6ho353AHRimm2cV5QdAIulkcTz8Jm5Afv6oGSYu677+rot2/Q S7TXy4Up16DxGi4zmOMBrq7gwxXFp0zZKxY19nFX8jg4jDOej+rfehjD6GUyp3rLpqyt I7+9Y2n0UlZbTAS2v1cU3IZQRUtzrme8zkS4V46zmP6Ll1T0e9exWU3FuALpKrsq84x/ sOSExjBTvHXdMX6gcuYka1WSB1K6Y2RJPmWgxK7JHXTjZewxaw/N8kXzMZEuOnPtWTyM fEOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733951060; x=1734555860; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0lJfhklsuiMlOUFpFBEx5Oh/2+xg9q5fUnM830/hSBw=; b=e1a8xcoFA1DGL+pU/hEJHZJJiUO49Q9sY7loim4Te9iXfjk6CcCFDDdEpYYeNpaPf7 eCCqdwXMCZI7KBYzUNJ/BMqqGpsu6dC1ER6XjRdimiqqrvPCA/KIClmS7LVoAdUE//25 a0rvrh/pEJ5uOClsehh0iDJrhS8GgioFVNht2O8CL6a2gqXB5QzBmkQW6JVCLG7Lb27k tPRBFAw3WPbJ7DoUPJuAZd2ST8Hy3XWURbgINqm0LIoBKHpxbZNKRRDLH6x7OYkjJppS ujFAu5uLhJumglG/o8v973Z8JUcLYuyh/cG72WlenjRk5IwYE2DCQfH7ECOmpDhZEEi2 Mudw== X-Gm-Message-State: AOJu0YyZMD0gIKdyXsu3hGPRJublDl6qQAw/TfHUzX46D3L2MF1OhfFh YeupvOPeO/1jq1Ym1Rz8WFrGD5c8AA/4wClmGPSE5ZUOQYXWWgPknhy+T4leragP+UqdJokys3t dr0vrGR04ePxArxQVDIMDtOWFGhI= X-Gm-Gg: ASbGncuS0k8LP/2NpqnN+Zzk/ldrnSh7Rd5rZIyB5YIfOsOmiArBG/1BzMb/q5qzHNq bOZIgwWcIXZChwK11Z3zUMNR1EBRnM10E4xg= X-Google-Smtp-Source: AGHT+IH4BGVZRuM6AHH+TRMZyntpFdP4kUabxUH/k5v8alUxAmK9rWG3oowGi/f/Ii+q1Yc3usfUjnDFjz0GbTZ3nh0= X-Received: by 2002:a05:651c:54b:b0:302:40ec:9f92 with SMTP id 38308e7fff4ca-30249e840ffmr3316351fa.32.1733951059656; Wed, 11 Dec 2024 13:04:19 -0800 (PST) In-Reply-To: <7cc30358-1412-4845-8f2d-efce17543cfd@imayhem.com> Received-SPF: pass client-ip=2a00:1450:4864:20::22d; envelope-from=yandros@gmail.com; helo=mail-lj1-x22d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326383 Archived-At: --000000000000f806dd062904f011 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 11, 2024 at 5:41=E2=80=AFAM Cecilio Pardo = wrote: > On 11/12/2024 5:33, Richard Stallman wrote: > > >> Texinfo's HTML uses CSS, which I think emacs does not support. > > > > Indeeed, handling CSS would be a lot of additional work. > > > > Does HTML itself have any extensibility, any way to define (in effect) > > macros, so that `...' could translate into `*...*'? > > No. We could use javascript for the browsers, and preprocess with lisp > for emacs if we go that way, but it doesn't sound natural. > This is not quite correct; HTML has DIV and SPAN elements that can attach arbitrary ID's to sections or spans of text in an html document. This is _usually_ used for styling, via CSS, but it would be easy to include CSS in the HTML output that makes code here or code here style the text in italics. This usage is not currently common, but it was part of the original intended usage way-back-when, and I don't know why it wouldn't still work. It would also be pretty easy to add support for such "custom tags" to eww's HTML renderer (shr.el, which seems to be not thoroughly documented, at least in my current install). I admit that I'm not sure why one might want to look at info manuals in HTML format inside emacs, but if it's wanted, it shouldn't be difficult. Apologies if I've added noise due to missing something in the thread. ~Chad --000000000000f806dd062904f011 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Dec 11, 2024 at 5:41=E2=80=AF= AM Cecilio Pardo <cpardo@imayhem.c= om> wrote: