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 aKZeM+Q8OWPWuwAAbAwnHQ (envelope-from ) for ; Sun, 02 Oct 2022 09:25:24 +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 YEo2M+Q8OWPTVwEAauVa8A (envelope-from ) for ; Sun, 02 Oct 2022 09:25:24 +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 5F8D23FFDF for ; Sun, 2 Oct 2022 09:25:24 +0200 (CEST) Received: from localhost ([::1]:58506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oetLn-0007Qu-06 for larch@yhetil.org; Sun, 02 Oct 2022 03:25:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oetKH-0007Ql-HF for emacs-orgmode@gnu.org; Sun, 02 Oct 2022 03:23:49 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:43973) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oetKF-0004JK-R6 for emacs-orgmode@gnu.org; Sun, 02 Oct 2022 03:23:49 -0400 Received: by mail-pg1-x52a.google.com with SMTP id v4so7379391pgi.10 for ; Sun, 02 Oct 2022 00:23:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=jdJf5Mx6n0Aw3E+tMFNarSrNiGSkWMQyXsaQfiA4nAk=; b=B3m5A2ySMWlwlVLbyyZGdfxPTmBJGT9L0iv+OwFP1oeCQM5K4bM3/hXHoEvTR1Q4Gy 7eUuD9HElMbGycCr3HTQkPb0/jB1kWmdYnEYFGh6qBg4NR1cMd4fFSDEd+faEijmYEvZ OasBJRUXmxVNnxlg7oMVPdie2VLEPYpUjwPyQ3cSm4e3fcER8atiwislRyKgJcegLWS/ ZaLKnxPy/wJfTi4oNQFYo5H0Y5oZv6y184II3uaJOVjcvHVyd69eFSq1sGU9J7N3zobq Pk3pTTLb98rM5Oy6cPH3UGDi18gq2vQlIvOAIHrS34tqLvkZJzInYb64gBsmeOrVrFsF LdHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=jdJf5Mx6n0Aw3E+tMFNarSrNiGSkWMQyXsaQfiA4nAk=; b=5TnLlf7FhLR2xz7MYgN3c2h5PiguCo+BHUZUKkpt8bTND/swcdIzkD+fPj+g5TlQs+ PtG3vlnv/ISfdhZ9CgU8+HdbAQdvNSvn0PwFoe37DWxgYireaiqNhG84Z6UxvfpgUOFW 1NEwy3q/ceJDoSulXmjTMFZfkjjzUTWdVJU7ocRH/zeZ/WYJbUMaZVv2CpcY37Ya4+YG e+rt57tBnb9g+Hb4eN+fnC6uGvUuYN5+fJ7TiRJSLUgKkFx4aexqKLXgStVaSdsq6r0w a0aYJrCnBOu4uokT+FbLaxaLWKaXfMv+GpjVS9vccc9JrsBL4cFYh7DEX2+SrAwsJn7p dlrQ== X-Gm-Message-State: ACrzQf0ka5Q+u7RZIK9hTSGKMGsR4lWLUkXDrRn9ezHSqtElIWf51Pkc 77y1t1YYb9Ham/CfsBHEpvp7hjRNv2Y= X-Google-Smtp-Source: AMsMyM5WPBL4Ej+RyosmMG5hOU/EIr0P2RS6+fgzcCjg4DUkbt92rSKuAO77MGZhPk+kZq00EOLfVQ== X-Received: by 2002:a05:6a00:a05:b0:534:b1ad:cfac with SMTP id p5-20020a056a000a0500b00534b1adcfacmr16796536pfh.35.1664695426026; Sun, 02 Oct 2022 00:23:46 -0700 (PDT) Received: from localhost ([2409:8970:a80:3a4:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id w18-20020a170902e89200b00176b63535ccsm4879158plg.193.2022.10.02.00.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Oct 2022 00:23:45 -0700 (PDT) From: Ihor Radchenko To: David =?utf-8?Q?Luke=C5=A1?= Cc: emacs-orgmode@gnu.org Subject: Re: Code block syntax highlighting in async export In-Reply-To: References: Date: Sun, 02 Oct 2022 15:24:38 +0800 Message-ID: <878rly1ydl.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=yantar92@gmail.com; helo=mail-pg1-x52a.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=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-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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664695524; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=jdJf5Mx6n0Aw3E+tMFNarSrNiGSkWMQyXsaQfiA4nAk=; b=CV64EWfkCYRrBACs5XfpNWUre25MTV4uDrkRHbiE9mzSiwhc74+t8vm6VhlyubDFahYgLj SfTvJibXPBgI2CLPR+DQvbUG6c1LTRE8YAaGKbYeMcs3SMlXwfLmzVSQZwNZZtRYTdKuV7 Np1wzbZ0f3BmuGGi8d9U2L5CzSEo3wWGXQyOm4ufhjZlar8A50/Idx0Mu//8UfOaDJwKzz YhTgYKwIeEN6mt0GjIs5d4NF1Brt+7D5N4x4nbjUXM+UsSWTUFgsh0Gls0FVsuaB8BI2Y4 E/ah1cMQIeyzAvcOYwwCLnd6TFmmCN2DAQUCx0ubwJxvPznV7zvu6t1PYY4Xtg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664695524; a=rsa-sha256; cv=none; b=W04xXcyY6MlEVudWfBbbVe0qU5i5qWTd95zdMDPZSCTmQjU/sMAPMSOB6Eii/y03ni8UbN hKe3Fcs/C2jCD59xWeMa57JTicOgY2p8XkdP2na9FYR4WBbhV3EEfRqk420do6gk3dhJLv hEujhqLnUb7R44f1whHjR5Z5otIzQXMSSUyuRZDK6gwskzmKtxI+HUosSLpJreTC+GfhJ5 H1/pQsgoh4Pav8bbE6oQdzolN9CjKxkc2DPq7U0SLxFyO/7bh9aJBOm02jP+iU3n8Fefri Z+j3HG4EFV8tjwwpUg+V8WCkeK5TsDzpnax+9yujAI6w4NT9KtBPtL6Ska55Gw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=B3m5A2yS; dmarc=pass (policy=none) header.from=gmail.com; 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: -4.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=B3m5A2yS; dmarc=pass (policy=none) header.from=gmail.com; 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: 5F8D23FFDF X-Spam-Score: -4.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: quh5yvQdDFl0 David Luke=C5=A1 writes: > I get different syntax highlighting in code blocks when using async > export: no colors, just bold, italics and underlines. Is this expected, > and if so, is there maybe an easy fix I just don=E2=80=99t know about? Could you please provide an example? See https://orgmode.org/manual/Feedback.html > I found a similar problem in [batch export], but the workaround seems > relatively complicated and brittle. That is likely a different problem. In batch mode, Emacs disabled font-lock-mode unconditionally, which makes fontification in some major modes broken. --=20 Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92