[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: including files as-is in muse
From: |
Michael Olson |
Subject: |
[emacs-wiki-discuss] Re: including files as-is in muse |
Date: |
Thu, 12 Jan 2006 16:47:35 -0500 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Stefan van der Walt <address@hidden> writes:
> I am trying to include a code listing in my wiki, by using the
> following lisp code:
>
> <lisp>
> (with-temp-buffer
> (insert "<example>")
> (insert-file-contents (concat (file-name-directory
> muse-publishing-current-file) "code.py"))
> (insert "</example>")
> (buffer-string)
> )
> )
> </lisp>
>
> The <example> tag is parsed, and yet the rest of the code (inside
> the <example></example>) is also wikified. Is this the expected
> behaviour?
We'll eventually have an <include> tag, similar to the emacs-wiki one,
and it will allow you to specify whether or not to mark up the
inserted text.
--
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: manga, Debian, XHTML, wiki, Emacs Lisp
/` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG
|_] | \| |_| Jabber: mwolson_at_hcoop.net
pgpylV5cnoWpB.pgp
Description: PGP signature