emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] src blocks not fontified


From: Omid
Subject: Re: [O] src blocks not fontified
Date: Sun, 01 Jun 2014 18:46:30 -0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

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 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, Jun 1, 2014 at 3:17 PM, Omid <address@hidden
> <mailto:address@hidden>> wrote:
> 
>     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-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 setup
>     > steps.Do I need to do any setup in my .emacs if I just use the
>     built-in
>     > org?
>     >
>     > Thanks.
>     >
>     > Shiyuan
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]