From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id GMIGOMls12U3SgEA62LTzQ:P1 (envelope-from ) for ; Thu, 22 Feb 2024 16:48:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id GMIGOMls12U3SgEA62LTzQ (envelope-from ) for ; Thu, 22 Feb 2024 16:48:26 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=JLaF3SND; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708616905; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=bA2PNcJfaztU3Ga6UNPJn7MZsgjKKMOQQodO5lsM0wI=; b=JbKAffxuadELXiav77yTw0QzNRCzDnzMO5PPIypjJDxIEF7sUSRcb/lXKL4JHhbR7nRWEv 8YVcbLHqeJKNPRSNlFrJCtOXvm7trPEMd9MIGGgjc4URTIYTxd2a0tE48cAYVE3gTXgshI nsb5SS1Qjys4vy1AcQD2oSwnWxzKLUX9quuUQ3OpstGp1npom5jSfweejBZegteOt32w8M Bd+TYg9LWT1tqf4SU6gKCiGjyOwedtJzBBlQMXv+WqO/RdGrKBVpRPP51t6wrqcW5Ge6Vw wt0ILK4ZhxJ2x9kIW2uPabvWlWMmo54lnwdbT4E03ejMbEFx+9BVY2c4t+46yA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=JLaF3SND; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708616905; a=rsa-sha256; cv=none; b=jerooCV7v9qV2YWGhqYhLHHX6kG7zVn/C/m2biZps3+ALBHpvJPY4D3wvuKOGhXYgPZdaK jczvKdtXiqGuMgMtJjgEZjq0v9nkBFlBCwtc+BQc+pdF8qZUZvkohws3bhpVVzWCmiB4qo RCNHTYIhY60qMDfKStwwFce4WJfSYGUNOpivQzkftT3uwT96nF/SWb9cSzK+MNLw2/1oJ1 g5gdYrotNICdwDiDXXtzpATXypWhuRQoMSo8nxGBk4kCYPxVyWlAL/Z3NKFOqqJsAIMJI3 v5WriSsE5aHAz1efLLLu/5uRWRcOYb0+FfN2A5+Ndo+emztJ0A2vZNT26pQCYw== 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 8E8576AA2E for ; Thu, 22 Feb 2024 16:48:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdBID-0003up-C3; Thu, 22 Feb 2024 10:47:25 -0500 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 1rdBIA-0003nE-Kg for emacs-orgmode@gnu.org; Thu, 22 Feb 2024 10:47:23 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rdBI8-00045p-Gp for emacs-orgmode@gnu.org; Thu, 22 Feb 2024 10:47:22 -0500 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-33d7b04f7e9so1386906f8f.1 for ; Thu, 22 Feb 2024 07:47:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708616837; x=1709221637; darn=gnu.org; h=mime-version:date:subject:to:from:message-id:from:to:cc:subject :date:message-id:reply-to; bh=bA2PNcJfaztU3Ga6UNPJn7MZsgjKKMOQQodO5lsM0wI=; b=JLaF3SND2510b6/WHxvGBZqpO9cr+ID9Gd7cWY+sqpJDnkyQLY/oO4ZPfF/Oc/B54r 8gUslT1smChaCyyVCk6juRItRcFXjvXb9qoBTY71dItCTOqlKE2N7Dh29aQWcWJNjwhz mMk+CqnRTPMuMv6gBe2+qiQ2ZM1TrRm64jN0SPJvER4kicX+xz453qF1eTLWNReYXAqg OPzGrYpXuxtp5om/5itEHjCRoc2qotGSfmb61eO8XYiXMDewsD9zwwrLC/JK70zO8aIz exGezZst00Z8aU/Bq3RiEeU2wPKs9xV+Z+OoQ4aLMImdMD7QmY018x2pi/lhVd8d7Xm/ kkMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708616837; x=1709221637; h=mime-version:date:subject:to:from:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bA2PNcJfaztU3Ga6UNPJn7MZsgjKKMOQQodO5lsM0wI=; b=i4c/ZBDZ/i1Kjm9ak+p5ob0SEgWMU8wV+ITVaXZtve0oZO0SihoYekU5MXyqeRlsbC KDSCscdHyECdj/BpnouGXywKG2QF2ZWUSvPnZbhi6LwaVH3dimyUvDYlZqal92yeySmP 27Je9TyXED8AP8nfNVdheD5EBFbqRkfjKUypZnbekYCmuQPwBIXY2qmVyGjD09tfZ/AJ mUDl0kcBMxh5NNa/06+57F6IFiQ7avPvhG3gh9y56t6Kpae+WX19S4D/QoEW+JfNIWHa naDgsKbbrt+sH8T8gYzs8Q9T377xBczT55CsN4kPNd9ywB0KNtbnVWOeDdKUogKuZMvu 71bg== X-Forwarded-Encrypted: i=1; AJvYcCXGeIlEKVmHAWjEdOJAlAcZMJVNp39kh6GOLFq3H/MUw6n0JbvEWmhJPS2qyNlOc4d0Dgw70LAjsnVu9QCrhHU9HAUDYqg= X-Gm-Message-State: AOJu0YxgfzzgPgEyi1fCIyw0ZKcmD9rH9gItmhFUOrSZ3qf4TTzJZKAs WvV5/bEvCwE1B6htBhYlwhw/AkCjwnj3IluNxdygfaYgPmdBdCYM X-Google-Smtp-Source: AGHT+IGaKQy9oF5A5oyCM0qM2aFNvT2Qw1a7lB61OHa2CeHnVPois0Cf9W+TUxbiry3qyvuv+B6rAg== X-Received: by 2002:adf:f088:0:b0:33d:3be4:6c75 with SMTP id n8-20020adff088000000b0033d3be46c75mr8041980wro.71.1708616837258; Thu, 22 Feb 2024 07:47:17 -0800 (PST) Received: from keynux ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id g5-20020adffc85000000b0033d8aeb229csm3036036wrr.27.2024.02.22.07.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 07:47:16 -0800 (PST) Message-ID: <65d76c84.df0a0220.8cb17.afd6@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Thu, 22 Feb 2024 16:47:15 +0100 From: Bruno Barbier To: Rudi C , emacs-orgmode@gnu.org Subject: Re: org-mode: example blocks are no longer syntax highlighted in emacs Date: Thu, 22 Feb 2024 16:47:15 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=brubar.cs@gmail.com; helo=mail-wr1-x432.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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -1.70 X-Spam-Score: -1.70 X-Migadu-Queue-Id: 8E8576AA2E X-TUID: hBuoog9IolTV Hi Rudi, Rudi C writes: > After upgrading to emacs 29.2 and org 9.7, my example blocks are no longer > syntax highlighted in emacs. They used to be syntax highlighted when I > specified the block's language. Any ideas? > > I use Doom, so it might have been a third-party feature. > > I know org-mode officially suggests that example blocks should not have > syntax highlighting, but I want it anyway. IMO `:eval never` is just not as > good, Why is `:eval never` not as good ? You don't have to write it on each code block; you may set it globally, per file, per headline, etc. See https://orgmode.org/manual/Using-Header-Arguments.html. > not to mention tools like `pandoc` also produce example blocks from > markdown source blocks. My version of pandoc generates org source blocks from markdown code blocks (pandoc 3.1.11.1). I'm not sure you'll get a better answer than this SE answer: https://emacs.stackexchange.com/questions/76466/how-do-i-get-syntax-highlighting-in-example-blocks-when-exporting-org-mode-to-ht I.e. "begin_example" is just not designed for source blocks. It may have worked by chance before. Hoping this helps, Bruno