From: carsten@kragelund.me
To: emacs-orgmode@gnu.org
Subject: [FR] Fontifying src-blocks with no language specified
Date: Thu, 16 Feb 2023 11:49:23 +0100 [thread overview]
Message-ID: <99388ff3711696091f0312a5c3f0bcbd@kragelund.me> (raw)
Fontifying src-blocks with a missing language would allow being able to
theme src-blocks without having the unthemed text of languages fallback
to whatever color the src-blocks are set to.
I envision this could be done with an empty string in
org-src-block-faces.
See the below example where printf has the org-block face, in this case
it would allow using a more normal color by default for org-blocks where
the blocks without a language could use a more pronounced color.
#+BEGIN_SRC C
int main() {
printf("Hello World\\n");
}
#+END_SRC
#+BEGIN_SRC
this is just a block of text
#+END_SRC
next reply other threads:[~2023-02-16 10:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-16 10:49 carsten [this message]
2023-02-17 12:20 ` [PATCH] [FR] Fontifying src-blocks with no language specified Ihor Radchenko
2023-02-17 19:31 ` carsten
2023-02-18 10:48 ` Ihor Radchenko
2023-04-02 14:33 ` Ihor Radchenko
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
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=99388ff3711696091f0312a5c3f0bcbd@kragelund.me \
--to=carsten@kragelund.me \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).