emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Saptarshi Guha <saptarshi.guha@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: htmlize with one lang mode but output a different class name in HTML export
Date: Thu, 12 Mar 2009 00:29:21 -0400	[thread overview]
Message-ID: <1e7471d50903112129m157a8809oa03dac10a5020b8d@mail.gmail.com> (raw)
In-Reply-To: <1e7471d50903111736w3f6770cdj230af7fda7324873@mail.gmail.com>

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
<saptarshi.guha@gmail.com> 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	other threads:[~2009-03-12  4:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-12  0:36 htmlize with one lang mode but output a different class name in HTML export Saptarshi Guha
2009-03-12  4:29 ` Saptarshi Guha [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1e7471d50903112129m157a8809oa03dac10a5020b8d@mail.gmail.com \
    --to=saptarshi.guha@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).