From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: How to initiate source edits Date: Fri, 03 May 2013 09:34:49 +0100 Message-ID: <8738u4zck6.fsf@gmail.com> References: <51835119.9000805@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYBQB-0007SU-4X for emacs-orgmode@gnu.org; Fri, 03 May 2013 04:32:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYBQA-00052B-60 for emacs-orgmode@gnu.org; Fri, 03 May 2013 04:32:51 -0400 Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]:52237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYBQ9-000523-Vm for emacs-orgmode@gnu.org; Fri, 03 May 2013 04:32:50 -0400 Received: by mail-wg0-f51.google.com with SMTP id b13so1323862wgh.18 for ; Fri, 03 May 2013 01:32:48 -0700 (PDT) In-reply-to: <51835119.9000805@easy-emacs.de> 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: =?utf-8?Q?Andreas_R=C3=B6hler?= Cc: emacs-orgmode Hi Andreas, Andreas Röhler writes: > Hi, > > have in some source file, let's assume Python, the following: > > > foo = { > "bar": ( > "baz", > "qux", > ), > } > > What is the best way to put this into an > > #+BEGIN_SRC python > > foo = { > "bar": ( > "baz", > "qux", > ), > } > > #+END_SRC A literal answer would be: echo "#+BEGIN_SRC python\n" > newfile.org cat somefile.py >> newfile.org echo "\n#+END_SRC\n" >> newfile.org Myles