emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tim Cross <theophilusx@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Highlighting and Background Colour for Source Code
Date: Tue, 11 May 2021 14:50:44 +1000	[thread overview]
Message-ID: <87zgx1c1a4.fsf@gmail.com> (raw)
In-Reply-To: <trinity-9e50b152-1f6a-497d-9099-e63268a636bf-1620618481196@3c-app-mailcom-bs04>

Christopher Dimech <dimech@gmx.com> writes:

> Currently currently handles the highlighting of programming languages through
> "Code Blocks".  Could org-mode have the capability of highlighting a whole buffer
> with a particular language highlight typeface.

Sorry, I don't quite understand what exactly your asking for?

> I have also seen that within code blocks, the background is uses a colour that is
> different from the background colour of the buffer.  Is there a capability 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. 

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

  reply	other threads:[~2021-05-11  5:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-10  3:48 Highlighting and Background Colour for Source Code Christopher Dimech
2021-05-11  4:50 ` Tim Cross [this message]
2021-05-11  5:13   ` Christopher Dimech
2021-05-11  5:50     ` Tim Cross
2021-05-11  6:39       ` Christopher Dimech
2021-05-12 12:08     ` Ihor Radchenko
2021-05-12 12:11       ` Christopher Dimech
2021-05-12 12:27         ` Christopher Dimech

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zgx1c1a4.fsf@gmail.com \
    --to=theophilusx@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).