From: Eric Schulte <eric.schulte@gmx.com>
To: nicholas.dokos@hp.com
Cc: lowstz <lowstz@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Problem with BEGIN_SRC export-as-html
Date: Mon, 26 Mar 2012 07:49:04 -0400 [thread overview]
Message-ID: <87fwcvpo1o.fsf@gmx.com> (raw)
In-Reply-To: 21886.1332738307@alphaville
I believe that if htmlize.el is not available code blocks default to
<pre class="example"> on HTML export because Org-mode is not able to
fortify the source code. I would suggest either installing htmlize.el
explicitly or switching to a newer version of Emacs in which it is
included by default.
Cheers,
Nick Dokos <nicholas.dokos@hp.com> writes:
> 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;"><stdio.h></span>
> |
> | <span style="color: #98fb98;">int</span> <span style="color: #b2dfee;">main</span>(<span style="color: #98fb98;">void</span>) 
> | {
> | 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
>
>
--
Eric Schulte
http://cs.unm.edu/~eschulte/
prev parent reply other threads:[~2012-03-26 14: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
2012-03-26 11:49 ` Eric Schulte [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fwcvpo1o.fsf@gmx.com \
--to=eric.schulte@gmx.com \
--cc=emacs-orgmode@gnu.org \
--cc=lowstz@gmail.com \
--cc=nicholas.dokos@hp.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.