From mboxrd@z Thu Jan 1 00:00:00 1970 From: a machine of awareness Subject: how export highlight code Date: Sun, 18 Sep 2011 10:20:41 +0800 Message-ID: <874o0awpza.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5793-0006iC-UT for emacs-orgmode@gnu.org; Sat, 17 Sep 2011 22:30:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R578z-0005Kg-Vg for emacs-orgmode@gnu.org; Sat, 17 Sep 2011 22:30:13 -0400 Received: from lo.gmane.org ([80.91.229.12]:52542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R578z-0005Kc-Lb for emacs-orgmode@gnu.org; Sat, 17 Sep 2011 22:30:09 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R578x-0005Qt-BK for emacs-orgmode@gnu.org; Sun, 18 Sep 2011 04:30:07 +0200 Received: from 125.75.21.30 ([125.75.21.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Sep 2011 04:30:07 +0200 Received: from machine.of.awareness by 125.75.21.30 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Sep 2011 04:30:07 +0200 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: emacs-orgmode@gnu.org I'm using org-mode v7.01g. I've tried to export a code block like this: #+BEGIN_SRC c -n static void doData() { if (_pStatus->switchChange>0x00) { _pStatus->switchChange = 0x00; _pStatus->workStatus = DATABASE_PRO_WOR_WAIT; return; } ... } #+END_SRC The result html doesn't highlight the code. Instead it gives me:
 1:  
 2:  static void doData()
 3:  {
 5:    if (_pStatus->switchChange>0x00)
 6:    {
 7:      _pStatus->switchChange = 0x00;
 9:      _pStatus->workStatus = DATABASE_PRO_WOR_WAIT;
10:      return;
11:    }
12:    ...
13:  }
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? -- a machine of awareness Debianˇ˘Emacs+Gnus