emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kane Dou <douqilong@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Exporting to html doesn't highlight code syntax. And a make doc error
Date: Tue, 05 Oct 2010 10:48:14 +0800	[thread overview]
Message-ID: <87bp79s6c1.fsf@gbox.home> (raw)

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	other threads:[~2010-10-05  2:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bp79s6c1.fsf@gbox.home \
    --to=douqilong@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).