From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhiqiu Kong Subject: Incomplete syntax highlight for C++ code Date: Tue, 14 Feb 2012 22:59:32 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015175cae5423a84e04b8fb42d7 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxYqK-0004Rb-6D for emacs-orgmode@gnu.org; Wed, 15 Feb 2012 01:59:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxYqI-0002Hf-TE for emacs-orgmode@gnu.org; Wed, 15 Feb 2012 01:59:56 -0500 Received: from mail-bk0-f41.google.com ([209.85.214.41]:42688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxYqI-0002HV-FH for emacs-orgmode@gnu.org; Wed, 15 Feb 2012 01:59:54 -0500 Received: by bkty12 with SMTP id y12so752303bkt.0 for ; Tue, 14 Feb 2012 22:59:52 -0800 (PST) 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 --0015175cae5423a84e04b8fb42d7 Content-Type: text/plain; charset=UTF-8 Hi, 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 ( http://emacs-fu.blogspot.com/2009/05/writing-and-blogging-with-org-mode.html ). 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 '(("note-org" :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 "") ("note-static" :base-directory "~/Docs/notes/org/" :publishing-directory "~/Docs/notes/html/" :recursive t :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|swf\\|zip\\|gz\\|txt\\|el" :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!! Thanks, -Zhiqiu --0015175cae5423a84e04b8fb42d7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,

I am a new org-mode user and am trying to take notes wi= th it. As I put source code into my codes a lot, I love the integration wit= h htmlize pretty much. =C2=A0However, I found the syntax highlight on expor= ted html file is not as what I see in Emacs. To be more specific, only comm= ents and string literals are colored, which is shown in http://img.ly/dXTK. And here is what is looks like in Emacs= :=C2=A0http://img.ly/dXU6.=C2=A0

Actually, what I expected is the keywords such as int, = return should at least be colored, which is=C2=A0as introduced by emacs-fu = (http://emacs-fu.blogspot.com/2009/05/writing-and-blogging-wi= th-org-mode.html).

I checked out the latest org-mode (Org-mode version 7.8= .03 (release_7.8.03.336.gdf0a9)=C2=A0) and htmlize (for git repository), bu= t the problem remains. Moreover, here is my project setting:

(setq org-publish-project-alist
=C2=A0 =C2=A0 =C2=A0 &#= 39;(("note-org"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:base= -directory "~/Docs/notes/org/"
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0:publishing-directory "~/Docs/notes/html/"
:ht= mlized-source t
:base-extension "org"
:sub-superscript nil
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:recursive t
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0:publishing-function org-publish-org-to-html
;; :org= -export-htmlize-output-type "css"
:html-ex= tension "html"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:auto-= index t
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:index-filename "<= a href=3D"http://index.org">index.org"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:index-title "My Notes"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:link-home "index.html"=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; :section-numbers nil
<= div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:style "<link rel=3D\"st= ylesheet\"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 href=3D\"css/w= org.css\"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 type=3D\"text/css\"/>")
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 ("note-static"
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0:base-directory "~/Docs/notes/org/"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:publishing-directory "~/Docs/n= otes/html/"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:recursive t
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:base-extension "css\\|js\\= |png\\|jpg\\|gif\\|pdf\\|mp3\\|swf\\|zip\\|gz\\|txt\\|el"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:publishing-function org-publish-attachme= nt)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ("My Notes"
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:components ("note-org" "n= ote-static")
:auto-sitemap t
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:auto-index t
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0)))

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


Thanks,
-Zhiqiu
--0015175cae5423a84e04b8fb42d7--