From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shiyuan Subject: Re: src blocks not fontified Date: Tue, 3 Jun 2014 11:38:22 -0700 Message-ID: References: <538BA666.1000900@gmail.com> <538BAD46.8090204@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2d86007915904faf2d1e0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrtbP-0002pP-0D for emacs-orgmode@gnu.org; Tue, 03 Jun 2014 14:38:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrtbL-0001de-JZ for emacs-orgmode@gnu.org; Tue, 03 Jun 2014 14:38:26 -0400 Received: from mail-ve0-x232.google.com ([2607:f8b0:400c:c01::232]:51210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrtbL-0001dP-Eh for emacs-orgmode@gnu.org; Tue, 03 Jun 2014 14:38:23 -0400 Received: by mail-ve0-f178.google.com with SMTP id sa20so7603630veb.9 for ; Tue, 03 Jun 2014 11:38:22 -0700 (PDT) In-Reply-To: <538BAD46.8090204@gmail.com> 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: Omid Cc: emacs-orgmode@gnu.org --001a11c2d86007915904faf2d1e0 Content-Type: text/plain; charset=UTF-8 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 at 3:46 PM, Omid wrote: > 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 > > 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 > > > > > --001a11c2d86007915904faf2d1e0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I can only find=C2=A0htmlfontify in ELPA, but not htmlize.= Which ELPA repository will have htmlize? =C2=A0Or I need to install the .e= l file manually. I can find the htmlize.el in the following link, but not s= ure it's up to date. =C2=A0

Thank yo= u.=C2=A0


On Sun, Jun 1, 2014 at 3:46 PM, Omid <omidlink@gmail.com>= wrote:
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<= br> > src block than not.
>
> Also, when I export the org file to html, the src block is not fontifi= ed
> 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 <omidlink@gmail.com
> <mailto:omidlink@gmail.com>> wrote:
>
> =C2=A0 =C2=A0 Hi Shiyuan,
>
> =C2=A0 =C2=A0 Add
>
> =C2=A0 =C2=A0 (setq org-src-fontify-natively t)
>
> =C2=A0 =C2=A0 to your .emacs.
>
> =C2=A0 =C2=A0 Omid
>
> =C2=A0 =C2=A0 Sent from my Emacs
>
> =C2=A0 =C2=A0 On 06/01/2014 06:13 PM, Shiyuan wrote:
> =C2=A0 =C2=A0 > Hi,
> =C2=A0 =C2=A0 > =C2=A0 =C2=A0 I am using Emacs 24.3 with the built-= in org mode(7.9.3). The src
> =C2=A0 =C2=A0 > code block is not fontified (Emacs is started with = -Q option)
> =C2=A0 =C2=A0 > #+BEGIN_SRC emacs-lisp
> =C2=A0 =C2=A0 > =C2=A0 =C2=A0 (defun org-xor (a b)
> =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 "Exclusive or."
> =C2=A0 =C2=A0 > =C2=A0 =C2=A0 (if a (not b) b))
> =C2=A0 =C2=A0 > #+END_SRC
> =C2=A0 =C2=A0 >
> =C2=A0 =C2=A0 > This is my first time to use org-mode, so I could m= iss some setup
> =C2=A0 =C2=A0 > steps.Do I need to do any setup in my .emacs if I j= ust use the
> =C2=A0 =C2=A0 built-in
> =C2=A0 =C2=A0 > org?
> =C2=A0 =C2=A0 >
> =C2=A0 =C2=A0 > Thanks.
> =C2=A0 =C2=A0 >
> =C2=A0 =C2=A0 > Shiyuan
>
>

--001a11c2d86007915904faf2d1e0--