From: Puneeth Chaganti <punchagan@gmail.com>
To: Sankalp <sankalpkhare@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Including source code *from* a file in #+BEGIN_SRC blocks
Date: Sun, 11 Dec 2011 12:23:16 +0530 [thread overview]
Message-ID: <CALnw1fTgzSQkU3mbcnzqM10DpLTUD7S5z28LEQkFj7t7SL5v=w@mail.gmail.com> (raw)
In-Reply-To: <CABcJk5BKJHeipGHi+b4NfLY1Z9hS3FoOvaj4nOP_PtgtMknpoA@mail.gmail.com>
On 12/11/11, Sankalp <sankalpkhare@gmail.com> wrote:
> Hi,
> I've been using org mode's #+BEGIN_SRC ... <code> #+END_SRC feature to
> display source code.
>
> I was wondering if there's a way to include code from an external file.
> Like the *\lstinputlisting* feature in the LaTeX *listings* package.
You could use the #+INCLUDE directive.
http://orgmode.org/manual/Include-files.html
HTH,
Puneeth
next prev parent reply other threads:[~2011-12-11 6:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-11 5:56 Including source code *from* a file in #+BEGIN_SRC blocks Sankalp
2011-12-11 6:53 ` Puneeth Chaganti [this message]
2011-12-11 16:00 ` Eric Schulte
2011-12-11 17:08 ` Sankalp
2011-12-11 19:22 ` Nick Dokos
2011-12-11 19:25 ` Eric Schulte
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALnw1fTgzSQkU3mbcnzqM10DpLTUD7S5z28LEQkFj7t7SL5v=w@mail.gmail.com' \
--to=punchagan@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=sankalpkhare@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.