From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Jackson Subject: Re: FR: source code Date: Wed, 16 Jan 2008 18:59:51 +0000 Message-ID: <87tzldh9zs.fsf@shellarchive.co.uk> References: <87bq7w5zp0.fsf@shellarchive.co.uk> <60164EE4-391B-4801-AED1-6E0B566FF253@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFDUT-0005Qz-P4 for emacs-orgmode@gnu.org; Wed, 16 Jan 2008 13:59:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFDUS-0005Q3-RV for emacs-orgmode@gnu.org; Wed, 16 Jan 2008 13:59:57 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFDUS-0005Pt-J3 for emacs-orgmode@gnu.org; Wed, 16 Jan 2008 13:59:56 -0500 Received: from a.painless.aaisp.net.uk ([81.187.30.51]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JFDUS-0008Qo-4y for emacs-orgmode@gnu.org; Wed, 16 Jan 2008 13:59:56 -0500 In-Reply-To: <60164EE4-391B-4801-AED1-6E0B566FF253@gmail.com> (Carsten Dominik's message of "Wed\, 16 Jan 2008 17\:21\:08 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org Carsten Dominik writes: > On Jan 8, 2008, at 12:22 PM, Phil Jackson wrote: [...] >> is the lack of a method to 'embed' source code into a document ala: >> >> >> ... >> [...] > It seems to me that there are really two issues here: > > 1. Font-locking in the buffer > 2. Export > > I guess one problem is that the stuff in BEGIN_EXAMPLE and similar > structures is not protected from font-lock a la org-mode. > Maybe this is the main issue you are having Phil? > > How does Muse behave in your examlple? I don't know Muse too well. The code isn't actually font-locked in the buffer itself but is syntax highlighted upon export (in (x)html anyway). Without actually reading the code, I think it just takes the region applies the mode specified by the 'lang' attribute and then uses htmlize.el on it. I *personally* still can't decide if this is within org's scope though, not to say I wouldn't find it very handy. Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk