From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 uG78MWgy12JHewEAbAwnHQ (envelope-from ) for ; Wed, 20 Jul 2022 00:38:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YGoTMWgy12I6fQEAG6o9tA (envelope-from ) for ; Wed, 20 Jul 2022 00:38:32 +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 60B991C300 for ; Wed, 20 Jul 2022 00:38:32 +0200 (CEST) Received: from localhost ([::1]:44386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDvrL-0002Iq-7G for larch@yhetil.org; Tue, 19 Jul 2022 18:38:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDvqW-0002Ii-RT for emacs-orgmode@gnu.org; Tue, 19 Jul 2022 18:37:40 -0400 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]:35726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDvqV-0003wq-68 for emacs-orgmode@gnu.org; Tue, 19 Jul 2022 18:37:40 -0400 Received: by mail-pg1-x52c.google.com with SMTP id r186so14784251pgr.2 for ; Tue, 19 Jul 2022 15:37:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=rvUrX8hcoAQ760nWhjePrZEE4oZFJqmENpFMtR4505g=; b=S3s17in6ScZ0YvO41QYALpAlJHIWpPQLuAc/jz7y2vv5d2lzRw4ABuvlsfmJ2S9Kql DFX9AK3jS7XEYkMzOsL8MWArxCbxZynOuqiHhbk2gQaVgntnQHAIuQnW34jE0ZQ5q8jA CRBRcfxUHrgCzaG/+K0lmBz6LjW45kaB+1P4PYtyAnK+j5aQaWPfpkchptZOn8pPAtSb BjKOmpjetllEtMhxa5c+68bFGXxIWpDJqvEujD6MbxY6YhYVPTocK1TGVxmGI9f+zNZ8 Ic6coPKceazAT0lwHWI47Y7bhG0mYo9CzY2xxn8fAepCe34Ty2uD1c46m8evC9Y1OKzG bk9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=rvUrX8hcoAQ760nWhjePrZEE4oZFJqmENpFMtR4505g=; b=xgRTtiRAZ6uJlVb1p6AtjaKTAt2WfGXST/tra1IWgr7BwA7pm7ksvZBebhM/oWZbzG uCjs9nUEGusD9mz6EQT1IOlHh4ZoK45tU0Tj1VpFddTUrp2exDgZuonO4SAcHDunkmWv lVvn5IDKtwtAb5nwNQQYHBKIgf0kBQYE+jkdi+iaZM1lnuj0tQVnibX2RnxRdcg8cR9w LL7pW6ARDd7WT92xuSXlOIGbIRpXj44pFxFJnviM/1jgJ42jF7upSLA/Jl0OqJvk4j5L +K1frLPCKqEr8fvgho1yZB4BPBbVbq6iJS/6/4No0b4jnOF71STvBFNVtcWbseDGKzg/ eWKQ== X-Gm-Message-State: AJIora9ViTCScwj/w4ZpuRo896gYoh79+OPfbgJQLYr9bW77bTZeRAUJ YRth7IOoXpnI/QWZoh74zJU/usjflPlYvg== X-Google-Smtp-Source: AGRyM1sDYi+lxWKEvL9CyVKjHiJA1V4gB/PFqxtXhQ33JTRG85abawes26+QnAp0eq8y9NZBtqr/mg== X-Received: by 2002:a05:6a00:1693:b0:528:3c0:5825 with SMTP id k19-20020a056a00169300b0052803c05825mr35631891pfc.21.1658270257244; Tue, 19 Jul 2022 15:37:37 -0700 (PDT) Received: from dingbat (2001-44b8-31f2-bb00-842a-7361-87c7-2662.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:842a:7361:87c7:2662]) by smtp.gmail.com with ESMTPSA id j31-20020a63fc1f000000b00419ab8f8d2csm10456903pgi.20.2022.07.19.15.37.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 15:37:36 -0700 (PDT) References: <87zgh7i9vk.fsf@localhost> <864jzegk4q.fsf@gmail.com> <86v8rtfrxs.fsf@gmail.com> User-agent: mu4e 1.8.6; emacs 29.0.50 From: Tim Cross To: "M. Pger" Cc: emacs-orgmode@gnu.org Subject: Re: no syntax highlighting for code blocks with org-publish Date: Wed, 20 Jul 2022 08:33:42 +1000 In-reply-to: Message-ID: <86edygg24y.fsf@gmail.com> 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::52c; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x52c.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, 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" 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=1658270312; 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=rvUrX8hcoAQ760nWhjePrZEE4oZFJqmENpFMtR4505g=; b=e/uSqFHc53s5uP/r1oB1hnzrujRxgGHq+Zkd1TQbJoaV9CWtX5H9fJam6X/ooScbLfhtC5 ZkWG71sg6KIy46quVlopxTJVTqOm8Rcmd+cBbYE35L+7231YQtblSv2tjsHxbe05QYQTsF PSNMWs6p3dA6Kdv/IAvejg1MW5mG9JZDaK/4922GbH2tXGVj1Z0owMfvR8bq/iSsrLdCLR HwdHXVy5jJ+c+QUQojWISVKh/QheT/7XsVK+j9dyGoJDWAn4gHkgqMst7ZCsIADTcuYava Uoqkj49AA0wZzB/0uRZQQB62LqaijPoK4y0YnbtQp3WrbVT7Lu6FZXpLTFGXXg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658270312; a=rsa-sha256; cv=none; b=Gl1Gs3l4eS5lHmt0RGmC+g4AqKwfIHFlMACjjdb6cZnHee+nlpGIQxFf1LFllbXKq14uRM suF1L0zxooOgAFqb3d/G7bCmMjMnan8BBssY0I4aXEsQ6WeQyJmbFRIwgxDzU+Nxc889MZ PUSFWyEZ3jcWGXkJMVlidig+LP8TVlE3cl/L2RpmjMRv+8JyaBPBw9yRXdsxsSgacJqm2j /9bKLLv3XnsFyK16hDbMhXWzZUjjuh3zNsluaiYkyvsumPW6wnIXz18ruTzZ1nCvJc8oOl WmusTbJ2xPh07oiEKf/HtBEsQFqPSK74FwM8G1wfgBgnakfqEeXGIn0n1ZGBfQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=S3s17in6; 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: -5.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=S3s17in6; 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: 60B991C300 X-Spam-Score: -5.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9pF4J/cJBTH5 "M. Pger" writes: > I tried to publish using `M-x org-publish RET RET` as y= ou suggested, and > syntax highlighting was actually implemented, thanks. > > Actually the problem is coming from the fact that I use `emacs -Q --scrip= t build.el` (as a > bash script) to publish the project. According to > https://list.orgmode.org/AE5693F1-F63D-4383-8840-0FD2DBAAC5D6@gmail.com/ = (rather old, but > apparently this has not changed), font-lock-mode is not enabled by defaul= t in --batch > mode. Since `--script` "run Emacs in batch mode, like =E2=80=98--batch=E2= =80=99, and then read and execute > the Lisp code in file" (cf the doc), it seems that this is exactly my pro= blem. > > A workaround is suggested in > https://list.orgmode.org/AE5693F1-F63D-4383-8840-0FD2DBAAC5D6@gmail.com/,= but > unfortunately for me it does not work (yet). I am going to dig further in= to that. > I would be interested to hear how you go. I have a use case coming up where I need to publish a large number of org files using a batch job, so expect to run into the same issue. Right now, I'm still getting my head around how to best get a consistent style when the input comes from multiple org files from different sources and I want to minimise editing the sources, plus provide a simple way to update/change the styling later.