[Top][All Lists]

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

Re: [O] Problem with BEGIN_SRC export-as-html

From: Nick Dokos
Subject: Re: [O] Problem with BEGIN_SRC export-as-html
Date: Mon, 26 Mar 2012 01:05:07 -0400

lowstz <address@hidden> wrote:

> #include <stdio.h>
> int main(void) 
> {
> printf("Hello, World!"\n);
> }
> 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 

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

| <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 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.4) of 
Org-mode version 7.8.06 (release_7.8.06.110.g2756.dirty)

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


reply via email to

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