emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Exporting to html doesn't highlight code syntax. And a make do


From: Kane Dou
Subject: [Orgmode] Exporting to html doesn't highlight code syntax. And a make doc error
Date: Tue, 05 Oct 2010 10:48:14 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

I've tried to export a code block like this:
--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC python
  L[1:2] = 'a' # L.insert(1, 'a')
  L[len(L):] = ['a', 'b', 'c'] # L.extend(['a', 'b', 'c'])
  L[3:] = [] # del L[3:]
#+END_SRC
--8<---------------cut here---------------end--------------->8---

The result html doesn't highlight the code. Instead it gives me:
--8<---------------cut here---------------start------------->8---
<pre class="example">
L[1:2] = 'a' # L.insert(1, 'a')
L[len(L):] = ['a', 'b', 'c'] # L.extend(['a', 'b', 'c'])
L[3:] = [] # del L[3:]
</pre>
--8<---------------cut here---------------end--------------->8---
And I have not changed any option related to org-babel or the
exporting function.
So how can I make the syntax highlighting work for exporting to html?


And there is another problem when I tried to 'make doc'. It says:
--8<---------------cut here---------------start------------->8---
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
 %&-line parsing enabled.
entering extended mode
(./orgcard.tex (./pdflayout.sty
! I can't find file `ifpdf.sty'.
l.24 \input ifpdf.sty
                     
(Press Enter to retry, or Control-D to exit)
Please type another input file name:
--8<---------------cut here---------------end--------------->8---




reply via email to

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