emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Differentiate source blocks in export?


From: John Kitchin
Subject: Re: Differentiate source blocks in export?
Date: Tue, 24 Nov 2020 11:00:53 -0500

I think you would have to use some kind of filter to look either for an #+attr_html or src-header argument, and modify the html output for that.

John

-----------------------------------
Professor John Kitchin 
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803


On Tue, Nov 24, 2020 at 7:16 AM Joost Kremers <joostkremers@fastmail.fm> wrote:
Hi all,

I was wondering if there's a way to distinguish between different kind of source
code blocks when exporting to HTML.

Specifically, I would like a way to mark certain code blocks in my Org file so
that those code blocks get a specific class in the HTML export. I can then style
them with some CSS to make them stand out visually. I know I can use special
blocks to get divs with a custom class, but I don't want to lose all the
benefits of code blocks...

I tried Google and the Org manual but I haven't been able to find anything on
this.

TIA

--
Joost Kremers
Life has its moments


reply via email to

[Prev in Thread] Current Thread [Next in Thread]