emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: lowstz <lowstz@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Problem with BEGIN_SRC export-as-html
Date: Mon, 26 Mar 2012 01:05:07 -0400	[thread overview]
Message-ID: <21886.1332738307@alphaville> (raw)
In-Reply-To: Message from lowstz <lowstz@gmail.com> of "Mon\, 26 Mar 2012 07\:55\:25 +0800." <CAOk+9yNc0WwD0=qZ5qS2ceB4H+77Gme12irfAU8duY0=4XmVsQ@mail.gmail.com>

lowstz <lowstz@gmail.com> wrote:


> #+BEGIN_SRC C
> #include <stdio.h>
> 
> int main(void) 
> {
> printf("Hello, World!"\n);
> }
> #+END_SRC
> 
> It work well in emacs, but when I run export as html
> the part of BEGIN_SRC / END_SRC generate <pre class="example">, it same with the BEGIN_EXAMPLE /
> END_EXAMPLE
> 

I cannot reproduce this. I get (both with my normal startup and with a minimal
.emacs):

,----
| <pre class="src src-C"><span style="color: #b0c4de;">#include</span> <span style="color: #ffa07a;">&lt;stdio.h&gt;</span>
| 
| <span style="color: #98fb98;">int</span> <span style="color: #b2dfee;">main</span>(<span style="color: #98fb98;">void</span>)&#160;
| {
| printf(<span style="color: #ffa07a;">"Hello, World!"</span>\n);
| }
| </pre>
`----

Have you activated C as a babel language? Maybe some some initialization
is interfering: try with emacs -q and a minimal .emacs (search the list
archives for examples), although the fact that (iiuc) things worked
before you reinstalled emacs and fedora, seems to point to some more
basic misconfiguration (maybe you are picking up pieces of the org mode
distributed with the platform emacs?). Just guessing here.

GNU Emacs 24.0.92.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.4) of 2012-01-24
Org-mode version 7.8.06 (release_7.8.06.110.g2756.dirty)

(my org-mode version includes half a dozen local modifications).

Nick

  reply	other threads:[~2012-03-26  5:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-25 23:55 Problem with BEGIN_SRC export-as-html lowstz
2012-03-26  5:05 ` Nick Dokos [this message]
2012-03-26 11:49   ` Eric Schulte

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=21886.1332738307@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=lowstz@gmail.com \
    /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).