Alright,

Fontification is not specifically an Org-babel feature, but is provided
by Org-mode at large, the relevant portion of the manual is available
online, and may be worth a quick read
http://orgmode.org/manual/Literal-examples.html#Literal-examples

I suppose it may be possible that you are using an old version of
htmlize, I'd recommend looking for a message like the following

  htmlize.el 1.34 or later is needed for source code formatting

in your *Messages* buffer after an html export.

Aside from that, and the htmlize variables (which should all be set to
their default values)
- org-export-htmlize-output-type
- org-export-htmlized-org-css-url
- org-export-htmlize-css-font-prefix
I don't know where the problem could lie.

Sorry I can't be of more help -- Eric

Nicholas Putnam <nput...@gmail.com> writes:

> My emacs version is "GNU Emacs 23.2.1 (x86_64-apple-darwin10.4.0) of
> 2010-07-07"
>
> htmlfontify-buffer on a python buffer worked -- although at first I thought
> it hadn't because all the font sizes were set to 0pt.
>
> How can I get org-babel to htmlfontify my code on html export?
>
> Nik
>
>
> On Thu, Jul 8, 2010 at 1:33 PM, Eric Schulte <schulte.e...@gmail.com> wrote:
>
>> Hi Nicholas,
>>
>> Nicholas Putnam <nput...@gmail.com> writes:
>>
>> > Dear Eric,
>> >
>> > Updating from the repository, and putting it at the head of my load-path
>> > fixed the problem with org-babel-tangle-lang-exts.  Thanks.
>> >
>>
>> Great, we're making progress
>>
>> >
>> > org-version returns org-mode version 6.36trans
>> > (release_6.36.576.gec22).
>> >
>>
>> The Org-mode version looks good.
>>
>> >
>> > I still can't seem to export python to html with syntax coloring when
>> > exporting to browser on C-c C-e b.  Should this just work?  I do see
>> syntax
>> > coloring on C-c '.  Setting or not setting org-export-htmlize doesn't
>> seem
>> > to make any difference.
>> >
>>
>> What version of Emacs are you using?  I htmlfontify requires at least
>> Emacs 22 or later.  Running 'emacs --version' at the shell will answer
>> this one.
>>
>> If you have a recent enough Emacs, then can you try opening up a
>> source-code buffer (say Python) and running M-x htmlfontify-buffer from
>> withing the buffer.  This should open up a buffer of html which when
>> viewed through a web-browser looks very similar to your Emacs buffer
>> fontification.
>>
>> If the above doesn't work, try loading htmlize.el explicitly from
>>
>>  org/contrib/lisp/htmlize.el
>>
>> Best -- Eric
>>
>>

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to