From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8MBsLfnQ1mKJRAEAbAwnHQ (envelope-from ) for ; Tue, 19 Jul 2022 17:42:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cKFSLfnQ1mKcyQAAauVa8A (envelope-from ) for ; Tue, 19 Jul 2022 17:42:49 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A013A2F116 for ; Tue, 19 Jul 2022 17:33:13 +0200 (CEST) Received: from localhost ([::1]:48082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDpDk-0004cU-0v for larch@yhetil.org; Tue, 19 Jul 2022 11:33:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDp9O-0000pf-Gx for emacs-orgmode@gnu.org; Tue, 19 Jul 2022 11:28:42 -0400 Received: from mout02.posteo.de ([185.67.36.66]:59773) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDp9H-0002U0-Bo for emacs-orgmode@gnu.org; Tue, 19 Jul 2022 11:28:42 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C1271240109 for ; Tue, 19 Jul 2022 17:28:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1658244511; bh=SDodY8uJPKHk0HK5wYvVqJV2Y9cjEDCAH13gFOK+rf8=; h=From:To:Cc:Subject:Date:From; b=DPbROjtfjbzEXJ/p3GKsqWFQqYP8M2N3TGFvxnGKcQK7c9WLTxsNImrQ5Mnim3kow +ZCGF/MUm5ki+OSeidFLV2g73lAWryRAS1oRxwyuZqi/lkw4W/TnVu2qto2NpE+Po/ v5ZG6rFIr1nVL28H3i5so4E608lY36HMGR5Nen+IsOE8d5HR6o9EepXEsY6E8c7UHw XChBgyUpqAUExqoidX1Ovg5oow89AOnRS1dGM5skTdPWadPHb+Pik2o3C/mB+FH2S8 WOuM9OTna5QEjQ9yGlDI/Fz0xyyCjK0TmLLB68mYg2kPk8uxPku+5Tx3kf12Ax80EV BWucawZzIEeWw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LnN5V1wNdz9rxP; Tue, 19 Jul 2022 17:28:27 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: "Fraga, Eric" Cc: orgmode Subject: Re: numbering src blocks in HTML export References: <87bktlm9kv.fsf@ucl.ac.uk> Date: Tue, 19 Jul 2022 15:28:25 +0000 In-Reply-To: <87bktlm9kv.fsf@ucl.ac.uk> (Eric Fraga's message of "Tue, 19 Jul 2022 15:00:16 +0000") Message-ID: <87mtd5nmue.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658244793; h=from:from:sender:sender: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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=NbLwPJDI5aI6iwyppQi58YcV1Pb7512PJxuQdnLXm4k=; b=RSfBGr/xepozavmn8P2zFGaYv/dhuI7QnQJPDeMAdx0q6nM0hMnO7Y/2RpqhOer2LmHMy0 UjbVniCSs8CR2blAj03gdqqVRthkce3v2nrm95OYXQhvaWnjNITvfZMe/mzZLrAQF0Q++0 OJQ7TSPFMiuRgnyEkopt1qQO18ZeGrVyX0vWXO21gmNjhmZatolGMpwx4x0w3RsKzJrH0o Nzpf6GHXApDH4q4ROnSOqlwtth4Di+L/YAw7zelxW55fy9EGSrAsWvrZnPJGiRdS7PsjW8 Tx+HVA7WK8s1/tO3TZamoHHMsHCHCyaw9Rr9pd4UMe/7IJMN1Hhy3KoFmWBeiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658244793; a=rsa-sha256; cv=none; b=BIZr4BkRySuz6ALeq7UG/GRKhrrnMNzmgbQPsyNu2mrtKEkB+0wcYnUqwyS25zX5qu5yc4 EKsH29xfcxY8BvxqEs56uDa2RgALNRPqBeB+M5d/VlPJYdmrmCYLKzZjN1JjZnoixPV+R1 InCLvNflDFRHE3Fsr6BvP7wh/PQ40BUgqzd1WEdxfAWH3aN1kggCnLcIb/1ygq/Zu/8gbn yVFid1/3aMOMN2SrvMNvHOpCBWoDZzK3PjRNsdUNlKGCf4m8Y+JGSuW+gUCsKoJaDa7zoa IRiQ916tkFZHLxhbdiGpe/vIlW8P5FSlG30pZ67NoYM1QPtM1F1qwZOcll5NJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DPbROjtf; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DPbROjtf; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A013A2F116 X-Spam-Score: -5.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: Barr12BW9VCu Fraga, Eric writes: > I really do not understand the last paragraph although it implies that > org already supports adding the line numbers. My elisp-fu is not up to > scratch to figure this out from the code unfortunately. Would somebody > explain what to do? Or should I simply add the CSS code that would do > it for me? I usually do it this way: #+begin_src sh -n :exports code aa bb dd ee ff #+end_src And you can also indicate the number of the first line, ie -n 20 Best regards, Juan Manuel