From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Problem with BEGIN_SRC export-as-html Date: Mon, 26 Mar 2012 07:49:04 -0400 Message-ID: <87fwcvpo1o.fsf@gmx.com> References: <21886.1332738307@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCAY0-0001ND-F7 for emacs-orgmode@gnu.org; Mon, 26 Mar 2012 10:05:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCAXu-0001ZU-3Q for emacs-orgmode@gnu.org; Mon, 26 Mar 2012 10:05:24 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:46550) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SCAXt-0001Yd-Ty for emacs-orgmode@gnu.org; Mon, 26 Mar 2012 10:05:18 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: lowstz , emacs-orgmode@gnu.org I believe that if htmlize.el is not available code blocks default to
 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  writes:

> lowstz  wrote:
>
>
>> #+BEGIN_SRC C
>> #include 
>>=20
>> int main(void)=C2=A0
>> {
>> printf("Hello, World!"\n);
>> }
>> #+END_SRC
>>=20
>> It work well in emacs, but when I run export as html
>> the part of BEGIN_SRC / END_SRC generate 
, it sam=
e with the BEGIN_EXAMPLE /
>> END_EXAMPLE
>>=20
>
> I cannot reproduce this. I get (both with my normal startup and with a mi=
nimal
> .emacs):
>
> ,----
> | 
#include <stdio.h>
> |=20
> | int main(void) 
> | {
> | printf("Hello, World!"\n);
> | }
> | 
> `---- > > 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 20= 12-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 > > --=20 Eric Schulte http://cs.unm.edu/~eschulte/