From: Bastien <bzg@altern.org>
To: Phil Jackson <phil@shellarchive.co.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: FR: source code
Date: Tue, 08 Jan 2008 14:03:04 +0000 [thread overview]
Message-ID: <87hchoh0tj.fsf@bzg.ath.cx> (raw)
In-Reply-To: <87bq7w5zp0.fsf@shellarchive.co.uk> (Phil Jackson's message of "Tue, 08 Jan 2008 11:22:51 +0000")
Phil Jackson <phil@shellarchive.co.uk> writes:
> This may well be beyond the scope of Org but the only thing that keeps
> me from switching everything from Muse to Org is the lack of a method to
> 'embed' source code into a document ala:
>
> <src lang="shell-script">
> ...
> </src>
>
> Is this something that might be possible in the future?
Yes. For now we have #+BEGIN_EXAMPLE (info "(org)Quoted examples"), but
it's just another way of converting part of the text in fixed-width font
when exporting (like C-c : does.)
Maybe this could evolve in
#+BEGIN_EXAMPLE lang:shell-script
...
#+END_EXAMPLE
So that the exporters know how to fontify the content of such parts, and
so that #+BEGIN_EXAMPLE is really different than C-c :
BTW, we had a discussion earlier with Carsten on whether the #+BEGIN*
directives formed a consistent class. I suggested to distinguish
between #+BEGIN_[export_language] and #+BEGIN_[type_of_region]. I
further suggested that we could have:
#+IF_HTML / #+ENDIF_HTML
#+IF_LaTeX / #+ENDIF_LaTeX
#+IF_TXT / #+ENDIF_TXT
and
#+BEGIN_EXAMPLE / #+END_EXAMPLE
#+BEGIN myblock
But maybe we shouldn't be the strict about the semantic, at least not at
the cost of simplicity.
What people think?
--
Bastien
next prev parent reply other threads:[~2008-01-08 14:03 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 [this message]
[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
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=87hchoh0tj.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
--cc=phil@shellarchive.co.uk \
/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).