emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How to initiate source edits


From: Myles English
Subject: Re: [O] How to initiate source edits
Date: Fri, 03 May 2013 09:34:49 +0100
User-agent: mu4e 0.9.9.5-dev6; emacs 24.3.1

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]