From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Add custom CSS class to code section? Date: Thu, 01 Oct 2015 11:22:38 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zha4c-00077M-7V for emacs-orgmode@gnu.org; Thu, 01 Oct 2015 05:22:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zha4X-0005gU-7v for emacs-orgmode@gnu.org; Thu, 01 Oct 2015 05:22:46 -0400 Received: from mail2.b1.hitrost.net ([91.185.211.205]:49018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zha4X-0005fu-1C for emacs-orgmode@gnu.org; Thu, 01 Oct 2015 05:22:41 -0400 In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Williams, Ken" Cc: "emacs-orgmode@gnu.org" Hi, #+BEGIN_foo #+BEGIN_SRC R system.time( result <- doSomething() ) #+END_SRC #+END_foo will wrap your code section in a
element. Yours, Christian Williams, Ken writes: > Hi, > > In http://orgmode.org/manual/CSS-support.html , I can see how to style Org-Mode's existing CSS classes in my exported HTML document. What I can’t see is how to add a custom class to a code section, something like this: > > #+BEGIN_SRC R :class foo > system.time( result <- doSomething() ) > #+END_SRC > > I want this because I’m trying to style some code blocks differently than others – specifically, I want some to be default-collapsed in my HTML output, and some to be default-expanded. > > *Ideally* this would actually be controlled by highjacking the existing ":exports" header argument, but I don’t know how to do that either. > > Any tips? > > -Ken > > > ________________________________ > > CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you.