With an org file like this: #+begin_src c /* ... */ #+end_src
you get valid recognition by babel, etc, but it is not recognized by ox-html's CSS file. Of course not all cases can be supported, but I think that this one is common enough for you to include. Regards, Nikolaos Chatzikonstantinou
From 9ea47f13a3b901287724aeb60793e3e9bee5018f Mon Sep 17 00:00:00 2001 From: Nikolaos Chatzikonstantinou <nchatz...@gmail.com> Date: Thu, 29 May 2025 02:28:34 -0400 Subject: [PATCH] add lowercase c to languages recognized for CSS highlight --- lisp/ox-html.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 0ed16eb00..3f771b38d 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -318,6 +318,7 @@ This affects IDs that are determined from the ID property.") pre.src-asymptote:before { content: 'Asymptote'; } pre.src-awk:before { content: 'Awk'; } pre.src-authinfo::before { content: 'Authinfo'; } + pre.src-c:before { content: 'C'; } pre.src-C:before { content: 'C'; } /* pre.src-C++ doesn't work in CSS */ pre.src-clojure:before { content: 'Clojure'; } -- 2.39.5