Hi,

#+BEGIN_foo
#+BEGIN_SRC R 
  system.time( result <- doSomething() )
#+END_SRC
#+END_foo

will wrap your code section in a <div class="foo"> 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.


Reply via email to