emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Zhiqiu Kong <breaddawson@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Incomplete syntax highlight for C++ code
Date: Tue, 14 Feb 2012 22:59:32 -0800	[thread overview]
Message-ID: <CAN8aJ9KuDeNPf2b5232muM58ct7CCTXw8uXFvy8LMeFhBu8+0g@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1963 bytes --]


I am a new org-mode user and am trying to take notes with it. As I put
source code into my codes a lot, I love the integration with htmlize pretty
much.  However, I found the syntax highlight on exported html file is not
as what I see in Emacs. To be more specific, only comments and string
literals are colored, which is shown in http://img.ly/dXTK. And here is
what is looks like in Emacs: http://img.ly/dXU6.

Actually, what I expected is the keywords such as int, return should at
least be colored, which is as introduced by emacs-fu (

I checked out the latest org-mode (Org-mode version 7.8.03
(release_7.8.03.336.gdf0a9) ) and htmlize (for git repository), but the
problem remains. Moreover, here is my project setting:

(setq org-publish-project-alist
         :base-directory "~/Docs/notes/org/"
         :publishing-directory "~/Docs/notes/html/"
 :htmlized-source t
 :base-extension "org"
 :sub-superscript nil
         :recursive t
         :publishing-function org-publish-org-to-html
 ;; :org-export-htmlize-output-type "css"
 :html-extension "html"
         :auto-index t
         :index-filename "index.org"
         :index-title "My Notes"
         :link-home "index.html"
         ;; :section-numbers nil
         :style "<link rel=\"stylesheet\"
         :base-directory "~/Docs/notes/org/"
         :publishing-directory "~/Docs/notes/html/"
         :recursive t
         :publishing-function org-publish-attachment)
        ("My Notes"
         :components ("note-org" "note-static")
 :auto-sitemap t
         :auto-index t

Any suggestion on how to debug and fix this problem? Or this is normal?
Thanks a lot!!


[-- Attachment #2: Type: text/html, Size: 3374 bytes --]

             reply	other threads:[~2012-02-15  6:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-15  6:59 Zhiqiu Kong [this message]
2012-02-18 15:21 ` Incomplete syntax highlight for C++ code Eric Schulte
2012-02-19  1:47   ` Zhiqiu Kong

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:

  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=CAN8aJ9KuDeNPf2b5232muM58ct7CCTXw8uXFvy8LMeFhBu8+0g@mail.gmail.com \
    --to=breaddawson@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).