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