emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: htmlize with one lang mode but output a different class na


From: Saptarshi Guha
Subject: [Orgmode] Re: htmlize with one lang mode but output a different class name in HTML export
Date: Thu, 12 Mar 2009 00:29:21 -0400

My work around was to create a derived mode. And #+BEGIN_SRC R-example
did the trick.
Saptarshi Guha



On Wed, Mar 11, 2009 at 8:36 PM, Saptarshi Guha
<address@hidden> wrote:
> Hello Org users,
> I primarily use org-mode for writing notes in the form of web sites. I have  a
> question.
> I wish to format some code written in the R language.
>
> #+BEGIN_SRC R
> y<-function(r){
>  ##do something
> }
> #+END_SRC
>
> This is okay, and my css files properly formats the =src-R= css class.
> However I would like to display some examples in R, but would like it to be
> formatted slightly differently, say a differently colored border.
> I tried wrapping the above in a DIV ,however, =src-R= draws a border, thus
> over-riding the DIV's border. What I need is a <pre class="src 
> src-Rexample"...
> instead of <pre class="src src-R">
>
> Is there a hook to outputs the <pre class="..." bit for a SRC region?
> So if I requested
> BEGIN_SRC Rexample, it would htmlize with R and insert  <pre class="src
> src-Rexample"..
>
>
> Thanks
> Saptarshi
>




reply via email to

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