From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kane Dou Subject: Exporting to html doesn't highlight code syntax. And a make doc error Date: Tue, 05 Oct 2010 10:48:14 +0800 Message-ID: <87bp79s6c1.fsf@gbox.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=58668 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2xa9-0006S0-1R for emacs-orgmode@gnu.org; Mon, 04 Oct 2010 22:48:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2xa1-00039u-PC for emacs-orgmode@gnu.org; Mon, 04 Oct 2010 22:48:44 -0400 Received: from lo.gmane.org ([80.91.229.12]:40459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2xa1-00039O-JY for emacs-orgmode@gnu.org; Mon, 04 Oct 2010 22:48:37 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P2xZx-0005Yq-5Z for emacs-orgmode@gnu.org; Tue, 05 Oct 2010 04:48:33 +0200 Received: from 58.38.82.188 ([58.38.82.188]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Oct 2010 04:48:33 +0200 Received: from douqilong by 58.38.82.188 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Oct 2010 04:48:33 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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---
L[1:2] = 'a' # L.insert(1, 'a')
L[len(L):] = ['a', 'b', 'c'] # L.extend(['a', 'b', 'c'])
L[3:] = [] # del L[3:]
--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---