From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Arsen_Arsenovi=C4=87?= Newsgroups: gmane.emacs.devel Subject: Re: Colorizing source code in Info manuals Date: Fri, 06 Dec 2024 01:31:48 +0100 Message-ID: <86plm5tzwr.fsf@aarsen.me> References: <87ttbh4v5l.fsf@web.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31185"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Cecilio Pardo , emacs-devel To: "Dr. Arne Babenhauserheide" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 06 01:32:47 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 1tJMH0-0007yO-4l for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Dec 2024 01:32:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJMGJ-0001E7-2B; Thu, 05 Dec 2024 19:32:03 -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 1tJMGH-0001Dx-TW for emacs-devel@gnu.org; Thu, 05 Dec 2024 19:32:01 -0500 Original-Received: from mout-p-202.mailbox.org ([80.241.56.172]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1tJMGF-0005wV-A4 for emacs-devel@gnu.org; Thu, 05 Dec 2024 19:32:01 -0500 Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4Y4Byv4gdmz9spD; Fri, 6 Dec 2024 01:31:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1733445111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LTzPaeADCyciIM0ktR7kbQz5tU4qDsik6zbYGWptRxQ=; b=LnLQ5gkotjZKR8hjfeKJZoeOMB/4z40bhcYXuapvlN0AhXJhdTr3/jVKGo/PUs6TUgykkf 25g6KSbH6RRrMfv1jcuO9h7DY94y3Z3Dzw+TUzspJcgOhR8spCVsUncyIbMD4m7sjjanRC e3T64zwnli72gzDwTXdGh6yS5VgmEUTKaU75Z0WpJiEa7szM6DOlIYgrdmBO4pb9aBFgIs pOjV/Bz3jNChWEjyT7CBP8A7QieIegTNt7HWh1H+ErSrpTErZbPVcmFQgy9H4dBYmjlGUR jOdamEVOzUeikkRRXBaodqifQnGadH1IkyUJRyK4eUYd8Q2D15wRrNrdBc2vTg== In-Reply-To: <87ttbh4v5l.fsf@web.de> (Arne Babenhauserheide's message of "Thu, 05 Dec 2024 23:33:42 +0100") Received-SPF: pass client-ip=80.241.56.172; envelope-from=arsen@aarsen.me; helo=mout-p-202.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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:326108 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "Dr. Arne Babenhauserheide" writes: > Cecilio Pardo writes: > >> As texinfo is not going to add features like color to the Info format, > > This could also be added in HTML Exports via Javascript-Libraries. And without: (texinfo) Syntax Highlighting >> I think maybe emacs could add some itself. >> >> For example, the Emacs Lisp Intro uses @smallexample blocks for >> presenting lisp code. I modified makeinfo more or less successfully to >> generate a file with the line numbers where these blocks start. With >> this kind of information, emacs could fontify the source code. >> >> Does this sound good? > > That definitely sounds interesting! > > Could it also detect source blocks in *info* on the fly and then > highlight the block like orgmode does it? Instead of guesswork, the info format should be extended to contain the language ID @example can take as an argument. Really, the entire info format can be significantly better. It is currently a marked-up catfile. IMO, it should be replaced with something that has a proper DOM. =2D-=20 Arsen Arsenovi=C4=87 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZ1JF9F8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy c2VuLm1lAAoJEFLClDAeosSTgG8BAMt1q+z9OyrIQT0kEzv3mPxAmE1nKCgGkRqN gaI+L3YGAP9kvqQsMPq5OW5yrfNCJefoMNIp6v5SnFhl5j0jM9ybAw== =1d50 -----END PGP SIGNATURE----- --=-=-=--