From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6CWbAaISmmDQLwEAgWs5BA (envelope-from ) for ; Tue, 11 May 2021 07:14:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aPPFOKESmmBgLQAAbx9fmQ (envelope-from ) for ; Tue, 11 May 2021 05:14:09 +0000 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 724821E8CB for ; Tue, 11 May 2021 07:14:09 +0200 (CEST) Received: from localhost ([::1]:34608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgKic-0007AV-La for larch@yhetil.org; Tue, 11 May 2021 01:14:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgKhr-00078v-Je for emacs-orgmode@gnu.org; Tue, 11 May 2021 01:13:21 -0400 Received: from mout.gmx.net ([212.227.17.21]:41383) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgKhm-0004U0-6b for emacs-orgmode@gnu.org; Tue, 11 May 2021 01:13:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620709992; bh=7pfpLiHzi454tAw5XuLNHB9RvDcoSql9t6M84v2SkOo=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=eA67htac6of85uEaw+zt+qnZC2mQZBX/bsEjcZgbrlsezuMgBAjwJihL9lYsQbMBA fTkgUdX+Ck26XpD9+SsuR9tQFL/O5U8T1/NmdyxwlG8REGIjp8d+LZFG06imhEPMkp TWC6QYXrNWLnIuoMwN2hGwKEcRK+MiDZOzlp4CJk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs03.server.lan [172.19.170.169]) (via HTTP); Tue, 11 May 2021 07:13:11 +0200 MIME-Version: 1.0 Message-ID: From: Christopher Dimech To: Tim Cross Subject: Re: Highlighting and Background Colour for Source Code Content-Type: text/plain; charset=UTF-8 Date: Tue, 11 May 2021 07:13:11 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <87zgx1c1a4.fsf@gmail.com> References: <87zgx1c1a4.fsf@gmail.com> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:AP+pORDgrT2MD8hEfPx+o5pyDPsTK7MyZ8TIpme7PKtL2hTBBO0KqXUCvQEBlI5uYHNUT HBUhZq01K3gCZJlxL3DdUX+CFdvG7tJDxCgmCjztzkLKWdXvcGNsUx0SoV05/Epq0ClEpLz6QVFj MOl5rTsErhKgtqaizcJ6UlScvz2wTsXdo6bX7/aW9THEGaPmrppYS1ElTWVre8jYLVuuHW71Qg0X +s3Fg5gSRp48G24uwwvY5/i551tfaVUBTG7K/HtRJhNkEeUmTk04B7r0y5qM3LHT3/OKDjQDaDUn 1I= X-UI-Out-Filterresults: notjunk:1;V03:K0:TN+WercPID0=:uq4AR05DdhG7IKceIhYo7y ocNr8lQMD2L29noL2lMHSMFwm47YM2EPLKlEEDRNxANmBzfxeKZ5g/Po6q+DldZhg58xoxFjF pBRHBYSN22Hqdmvei9EFuZog3QMTsfF0z578fF5k0ejY8NIQaRRfdPRK/h3GBiOwDpl5bMkB2 lCjsgDVrZk3YkplJomoJQnKeQuLOTDb92TRUBr/r/3txzyMB4OLY0613XJUBZlxGDgpE6xY7w 5SU2DbwDu8MKF0HK/H7tuUt1spA+pD21ou3V3C1zKWFiewg4bGglJ+PnOFDfxl7okPSIqQ00q FXRBH1aJkA9NJ3/bNqGBvEHq+VMeB2hC8UlmTDPCFZRzBk165DbUN6wb7snSh/OLb58YR6mn+ hk5GNVx1zlNiAUcS1C+IPPLTg3j2pgGuktHqmw4PQLy0eQ7WRtzkJNZmfdxP9VKfvWmnqPDUq Dby7fTDsGcGXZjdIX9rQSYeXKKhf4SmRrrvMK6AhEVH92bJKxyEWuYVTMTTRPTZ75XJWPGbEb DvilcfTytaHfiEwoMrEBsU0kQJDcoc1l44zwto0lUkZh+fAVGoTBKvj4uUFUPsDXSlCTUR+/Q vOURLmuumABKi1tZNieMfRhJUMYZDpi6Q5fwIUHWE1cwjoNWVUBiPRrK+tOPJ3yY18+wkNPa7 PtigAzCAFgWLzawf82Sxx2VzlgecLrj/J9IEMUhHGkKgQWmMm4byrgUqqjtKm0WM475ESUt9P F65uw3uNRUKeQBqAAue2DhPzMbjgoFqHs35jkScxAmyU3oSk8Dd+fTEJvqHp1lGaAJejNN0QE /XeRK0C5WYmLfMa4vpcvUQ91MJr64N4BBd9KAQUndXm66IGrzEqg9rwfqql3VEd9T/tfF4yjM ZYotGJ5JcEdMut+UuxI84NzgHMGPR1G/In+vm8eRdXGWxc+2imvyp3X9oFyp8v Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=212.227.17.21; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620710049; 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=RxO0/avAqBgKutwltyJJT1vmO97InfjQYbeBBsTuxn4=; b=TmcuFxvcIlGlT5YR3ZYhGWFgd3h1M4zlnKmZ6NzoH+9AYR2o1clQQph4mR5AVYViozmIeW zXOUTpJX5oabLPTvYq7wkTk3On84QUDv7onHh2mgwlSl2JYmjvorJr9labF2JfHV7iDCEj P3cYmWdbb/2Ue7VfkreYnl/POJEaCpuABdYdzB3AvsD62PLAd7dDwT0/7x+Eqp4GuaeOwI lPV4yjHFWqUMEPJhuLEYRkNEkrLzpZ9X80XyjgkxIHy1gWo18J/P97J/efTMZB+R2vbu0R q9Ta0yJRWWdyLMC0qI1VUXu6mKMeWlajSEimOpLXhZr4xzVT+8YG/DJ0w09MBQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620710049; a=rsa-sha256; cv=none; b=KAJIRwWTP24Tk0OtIipZUGIls47fMO61I7Vnu820JvqQ1y5gZrHJMMHB4RHRe3wQKPNfbD JmPUkIVXZ6WQ/PHnlisT0Is7pYgAFC35Z+yPpcYgxbhw/TOO3+yyMV6tzK5VVdFsuk7oRV ij4Ci4H0Vjq7WovGXPBsmMw4NtlvPu9fDjemLNRGwxkbmcyyjkZYqvtzy62L1ZcwuMj+K+ +WMftbhL+RfT14zPyPD9iyMN1IVbA5fZ/VKhGRY/z495P3QMm7Cv1c/eDPypEjC49oQXuz y7/rloNKdfVyP17/bXF01mxX1oEIU2k9w6gHuSNSnDrDWI7aBeUt3jJM+qhidA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=eA67htac; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=eA67htac; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 724821E8CB X-Spam-Score: -0.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: Tfd+jbGXvTL7 > Sent: Tuesday, May 11, 2021 at 4:50 PM > From: "Tim Cross" > To: emacs-orgmode@gnu.org > Subject: Re: Highlighting and Background Colour for Source Code > > > Christopher Dimech writes: > > > Currently currently handles the highlighting of programming languages = through > > "Code Blocks". Could org-mode have the capability of highlighting a w= hole buffer > > with a particular language highlight typeface. > > > > Sorry, I don't quite understand what exactly your asking for? Suppose I have an elisp file and I change to org-mode by hitting "M-x org-= mode". The code does not get highlighted because it is not embedded within org-ba= bel construct. If I have a programming language file with some org-mode heading commands = in it, and change to org-mode, it would be neat to have language highlighting ava= ilable. > > I have also seen that within code blocks, the background is uses a col= our that is > > different from the background colour of the buffer. Is there a capabi= lity that > > the code block background is set to the buffer background colour. > > I think more often than not, this is determined by the Emacs colour > theme your using. I've noticed that some themes colour src block > backgrounds differently from the rest of the buffer background and some > don't. I noticed this because I do like src blocks to have a different > background and some of the themes I like fail to do this, so I had to > customize them. It is certainly useful but not always. Outline could have a switch, that toggles between highlight and no-highlight. > You can try customizing your theme. Have a look at > > M-x list-colors-display > > to see a list of all the faces being used. Look for ones with your theme > name or a name which looks like it might be the background face for src > blocks (you can also see the colours and look for that. Once you have > made the changes, look at > > M-x customize-theme > > and save your changes as a new customized theme. > > > > -- > Tim Cross > >