From: Phil Jackson <phil@shellarchive.co.uk>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: FR: source code
Date: Wed, 16 Jan 2008 18:59:51 +0000 [thread overview]
Message-ID: <87tzldh9zs.fsf@shellarchive.co.uk> (raw)
In-Reply-To: <60164EE4-391B-4801-AED1-6E0B566FF253@gmail.com> (Carsten Dominik's message of "Wed\, 16 Jan 2008 17\:21\:08 +0100")
Carsten Dominik <carsten.dominik@gmail.com> 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:
>>
>> <src lang="shell-script">
>> ...
>> </src>
[...]
> 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
next prev parent reply other threads:[~2008-01-16 18:59 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-08 11:22 FR: source code Phil Jackson
2008-01-08 14:03 ` Bastien
[not found] ` <b71b18520801082003h7baccfa9t3a0cf936c07c086a@mail.gmail.com>
2008-01-09 4:04 ` Eddward DeVilla
2008-01-09 17:33 ` Ed Hirgelt
2008-01-09 17:50 ` Russell Adams
2008-01-09 22:21 ` Adam Spiers
2008-01-16 0:36 ` Bastien
2008-01-16 1:21 ` Eddward DeVilla
2008-01-16 1:55 ` Bastien
2008-01-16 2:33 ` Tim Stewart
2008-01-16 12:05 ` Bastien
2008-01-16 16:03 ` Tim Stewart
2008-01-16 16:21 ` Carsten Dominik
2008-01-16 18:59 ` Phil Jackson [this message]
2008-01-18 8:20 ` Carsten Dominik
2008-01-18 9:59 ` Phil Jackson
2008-01-29 16:04 ` Phil Jackson
2008-01-29 18:20 ` Rick Moynihan
2008-01-29 18:32 ` Russell Adams
2008-01-29 18:49 ` Phil Jackson
2008-01-30 7:02 ` Bastien Guerry
2008-01-30 7:17 ` Bastien Guerry
2008-02-05 16:51 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tzldh9zs.fsf@shellarchive.co.uk \
--to=phil@shellarchive.co.uk \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).