From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sankalp Subject: Including source code *from* a file in #+BEGIN_SRC blocks Date: Sun, 11 Dec 2011 11:26:24 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec547c9edeb8ad004b3caae06 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZcP2-00031I-Ir for emacs-orgmode@gnu.org; Sun, 11 Dec 2011 00:56:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RZcP1-0002SH-Jn for emacs-orgmode@gnu.org; Sun, 11 Dec 2011 00:56:48 -0500 Received: from mail-vw0-f41.google.com ([209.85.212.41]:46176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZcP1-0002SB-Gx for emacs-orgmode@gnu.org; Sun, 11 Dec 2011 00:56:47 -0500 Received: by vbbfn1 with SMTP id fn1so3679204vbb.0 for ; Sat, 10 Dec 2011 21:56:46 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --bcaec547c9edeb8ad004b3caae06 Content-Type: text/plain; charset=ISO-8859-1 Hi, I've been using org mode's #+BEGIN_SRC ... #+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. I have a source code file that keeps getting modified, and each time I publish my project to the web (htmlize), I'd like to have the latest version of it in my source code block instead of having to copy-paste its contents each time. ------- Sankalp --bcaec547c9edeb8ad004b3caae06 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,
I've been using org mode's #+BEGIN_SRC ... <code> #+E= ND_SRC feature to display source code.

I was wondering if ther= e's a way to include code from an external file. Like the=A0=A0feature in the LaTeX list= ings package.

I have a source code file that keeps getting modified, and eac= h time I publish my project to the web (htmlize), I'd like to have the = latest version of it in my source code block instead of having to copy-past= e its contents each time.

-------
Sankalp
--bcaec547c9edeb8ad004b3caae06--