From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yCazIVKCOWMLXQEAbAwnHQ (envelope-from ) for ; Sun, 02 Oct 2022 14:21:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mP+rIFKCOWNvKQAAG6o9tA (envelope-from ) for ; Sun, 02 Oct 2022 14:21:38 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by aspmx1.migadu.com (Postfix) with ESMTP id 315DB446E4 for ; Sun, 2 Oct 2022 14:21:38 +0200 (CEST) Received: from localhost ([::1]:39694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oexwl-0005pM-Om for larch@yhetil.org; Sun, 02 Oct 2022 08:19:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oexw5-0005pA-6J for emacs-orgmode@gnu.org; Sun, 02 Oct 2022 08:19:09 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:36625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oexvr-00027I-Pb for emacs-orgmode@gnu.org; Sun, 02 Oct 2022 08:19:08 -0400 Received: by mail-wr1-f41.google.com with SMTP id j7so7807389wrr.3 for ; Sun, 02 Oct 2022 05:18:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date; bh=oSSSTJRkLM4VYVdgJjTgWBfRPKjy/CD0OYFrHPiLJTQ=; b=EMf4fWSqDlAxKC1XxtxC3Dd/Mwloq3IJ0h7t1L8av5dJn8TredD3qx+7WRwlIhZB/j NDIDsEvkWmk2Fp6Jp1GeyuJVAjO919UuDVoJF+AQiUA9DMyZ3KL2IC88KOOsXvWT7kLn GepGgk0xoZnnkxTV1HGvUNLHN25MCytZakXi4cR1BhUsjmcTVlrGFuU4G9+SmpQoL2wY bxVYA6iqNTVBvSacK8HM4e743hUOMsYn0Ez15ma4upMs+W2p3MYZ/Xrxx8WY2xQcWXbr 21ovHr8kraf520Kp2djVK9BVOPie7mBTUxNTXg/mhxWrWrZ0XEORKeeAsOzHMQnVOSHV gk1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date; bh=oSSSTJRkLM4VYVdgJjTgWBfRPKjy/CD0OYFrHPiLJTQ=; b=LlRhwMjFkFvCyUlpkNMUnsTUhJP3I0qOy11AhDTlQhUhpGpjO26rcc6vzKamM+oaII /Fy/2hEmIfiUouyV6sZtbn3UEhd/tG8y51yc0NXTGd1WmFh3Z21kADqcQGa7gGUAGkAL dZ+KIOKzKFlT9srjigQuNno9bAKrNZBDW31BqkKejdlXV0l07Hy3ZqOfwZRh7bJ5bvBs gECnkgplPmDbrfAR/1i4HD3ncbUspS2TiAZa8MjpmwbWeKhEfWF3ZxlZJlrtrLdQ40gp 9sj0EjQK3KQgfVsY8JlZdidYPb0xZm3Wgzn1havyZ1EPx3U9D/BBsw25XcKJgp2/8fYh xoTw== X-Gm-Message-State: ACrzQf0pfCfXUVLKV7Mz539mYOzJhRbZ6Zifzx5NwXzZEDN35cny9lnC BYW9t2J0zOljICGwxRQp7PzvTEWOebs= X-Google-Smtp-Source: AMsMyM5a1c1wsw/zz06UblWYpqWOThSr8uzqSwiNyDqWocncp9I8clLaxRxZWW2Zqw7kSYCQXqqdpg== X-Received: by 2002:a05:6512:2345:b0:49e:359f:5579 with SMTP id p5-20020a056512234500b0049e359f5579mr6383974lfu.478.1664712789765; Sun, 02 Oct 2022 05:13:09 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id z7-20020a2eb527000000b0026dc69247e8sm168721ljm.99.2022.10.02.05.13.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 02 Oct 2022 05:13:08 -0700 (PDT) Message-ID: Date: Sun, 2 Oct 2022 19:13:07 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: Code block syntax highlighting in async export Content-Language: en-US To: =?UTF-8?Q?David_Luke=c5=a1?= Cc: emacs-orgmode@gnu.org References: <878rly1ydl.fsf@localhost> From: Max Nikulin In-Reply-To: <878rly1ydl.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=209.85.221.41; envelope-from=manikulin@gmail.com; helo=mail-wr1-f41.google.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 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, NICE_REPLY_A=-1.086, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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=1664713298; 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=oSSSTJRkLM4VYVdgJjTgWBfRPKjy/CD0OYFrHPiLJTQ=; b=KQLo4r9D6caKOQuHHwBD3p3/xb/eE0MmlNozhK8Xe3wx0YJvonnjuyKbXDVyQv8MObcgtg SErwIoqFlBZkiMYUFjsnkk+5iZGOUF2yEAIP0hWs+E6gyp3uZRSRCUcjuXGlvGb/gCmlVJ 1ljM6ZKMGajwJGllQce/itGQ5eNy2MN6VCQZsyYOLc4b0O9rKI/r7in9AKBAaI6+mEuvDi 8u61H24l2xF31H/d92nwEYBkgRB+BZ3JWjETm8nMZwq791bxg4NffRtsujnDiG4NLW9KqU AjsEZZN2+EOVr5LGqdsoUthZOywbL/fshvPKxKzv7+yF6YrJxLOwu8FTHSCOuw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664713298; a=rsa-sha256; cv=none; b=ekkItL9ee4aPAIyAZ/3sUqxD0o+SSCKU4VyamoOOKUEE4UBAI5s0FcI2lPL9stPz0lLXhl zgXsYao5WSbhOwn5jPnhPndI/O+N61i4hzFjkViRQPQDauQ5IzRPvaXoPyAH/5ulZ4DSUY JNjXR7a6AbBxAmDHViY/X+BU5CYQtP+dbDvNR8VOcbjUZd5otSnD26Q+UPTzMznwKz54ff gTJAb9NH8cA3KWP3MJHIZklQGWcXYHQyfXQlLJxz7/ycRuUq2og3Ol9dQkCgU+PFkd3W8R KRVe+itvDTal5Fw9lms9VXaUPI42dWIAz4BlHwEu4vy5qR0owk3jVHZYAC0/7A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=EMf4fWSq; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 6.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=EMf4fWSq; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 315DB446E4 X-Spam-Score: 6.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: RLID5BSMpA+c On 02/10/2022 14:24, Ihor Radchenko wrote: > David Lukeš 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’t 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. Certainly more details is necessary, even export format (backend) is not specified. A problem that has some similar symptoms: M. Pger. Re: no syntax highlighting for code blocks with org-publish. Mon, 18 Jul 2022 22:55:15 +0000. https://list.orgmode.org/inTtQOKWAhnFydjBE9fQOOdo_oV6kIPG5_E0d8DsfFiYMIJ4RNLRk68Id6dyrzy1qIDK8YJu0Wty7objv22vR31PNrh-qB9vKxMgHPxNAu8=@protonmail.com