emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [FR] Fontifying src-blocks with no language specified
@ 2023-02-16 10:49 carsten
  2023-02-17 12:20 ` [PATCH] " Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: carsten @ 2023-02-16 10:49 UTC (permalink / raw)
  To: emacs-orgmode

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-02 14:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-16 10:49 [FR] Fontifying src-blocks with no language specified carsten
2023-02-17 12:20 ` [PATCH] " Ihor Radchenko
2023-02-17 19:31   ` carsten
2023-02-18 10:48     ` Ihor Radchenko
2023-04-02 14:33       ` Ihor Radchenko

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).