Re: [O] src blocks not fontified

2014-06-06 Thread Sebastien Vauban
Shiyuan wrote: > On Thu, Jun 5, 2014 at 6:13 AM, Sebastien Vauban wrote: >> Shiyuan wrote: >>> On Tue, Jun 3, 2014 at 11:53 AM, Nick Dokos wrote: htmlize.el is included in the contrib/lisp directory of org (but I'm not sure if contrib is part of the ELPA org distribution - it is ava

Re: [O] src blocks not fontified

2014-06-05 Thread Omid
Here is the setq for the "usual places" (setq package-archives '(("original". "http://tromey.com/elpa/";) ("gnu" . "http://elpa.gnu.org/packages/";) ("melpa" . "http://melpa.milkbox.net/packages/";) ("marmalade" . "http://marmalade-repo.org/package

Re: [O] src blocks not fontified

2014-06-05 Thread Shiyuan
What ELPA repos you are using? Could you show me the value of C-h v package-archives? Thanks. On Thu, Jun 5, 2014 at 6:13 AM, Sebastien Vauban wrote: > Shiyuan wrote: > > I need to download the htmlize.el from the org-mode git repos separately. > > After that, htmlize works magically and highl

Re: [O] src blocks not fontified

2014-06-05 Thread Sebastien Vauban
Shiyuan wrote: > I need to download the htmlize.el from the org-mode git repos separately. > After that, htmlize works magically and highlights the syntax in the > resulting html without any extra markup. Thanks for the help. > > On Tue, Jun 3, 2014 at 11:53 AM, Nick Dokos wrote: > >> Shiyuan wr

Re: [O] src blocks not fontified

2014-06-04 Thread Shiyuan
I need to download the htmlize.el from the org-mode git repos separately. After that, htmlize works magically and highlights the syntax in the resulting html without any extra markup. Thanks for the help. On Tue, Jun 3, 2014 at 11:53 AM, Nick Dokos wrote: > Shiyuan writes: > > > I can only

Re: [O] src blocks not fontified

2014-06-03 Thread Nick Dokos
Shiyuan writes: > I can only find htmlfontify in ELPA, but not htmlize. Which ELPA > repository will have htmlize?  Or I need to install the .el file > manually. I can find the htmlize.el in the following link, but not > sure it's up to date.   > http://www.emacswiki.org/emacs-ja/htmlize.el.  >

Re: [O] src blocks not fontified

2014-06-03 Thread Shiyuan
I can only find htmlfontify in ELPA, but not htmlize. Which ELPA repository will have htmlize? Or I need to install the .el file manually. I can find the htmlize.el in the following link, but not sure it's up to date. http://www.emacswiki.org/emacs-ja/htmlize.el. Thank you. On Sun, Jun 1, 2014

Re: [O] src blocks not fontified

2014-06-01 Thread Omid
One way is to use the package htmlize, which you can install from ELPA using M-x package-install RET htmlize http://www.emacswiki.org/emacs/Htmlize Omid Sent from my Emacs On 06/01/2014 06:40 PM, Shiyuan wrote: > That solves the problem. Thanks Omid. > Should this be the default setup? It seem

Re: [O] src blocks not fontified

2014-06-01 Thread Shiyuan
That solves the problem. Thanks Omid. Should this be the default setup? It seems more nature to fontify the src block than not. Also, when I export the org file to html, the src block is not fontified in the resulting html webpage. Is there another option to turn this function on? Thanks. On Sun

Re: [O] src blocks not fontified

2014-06-01 Thread Omid
Hi Shiyuan, Add (setq org-src-fontify-natively t) to your .emacs. Omid Sent from my Emacs On 06/01/2014 06:13 PM, Shiyuan wrote: > Hi, > I am using Emacs 24.3 with the built-in org mode(7.9.3). The src > code block is not fontified (Emacs is started with -Q option) > #+BEGIN_SRC emacs-

[O] src blocks not fontified

2014-06-01 Thread Shiyuan
Hi, I am using Emacs 24.3 with the built-in org mode(7.9.3). The src code block is not fontified (Emacs is started with -Q option) #+BEGIN_SRC emacs-lisp (defun org-xor (a b) "Exclusive or." (if a (not b) b)) #+END_SRC This is my first time to use org-mode, so I could miss some s