|
From: Gökçe A. <goe...@th...> - 2020-12-06 20:01:58
|
On 06/12/2020 20:34, Alan G. Isaac wrote:
> Why copy/paste at all when you can just ``include`` code?
Thanks, that is a good idea for longer code Alan!
My case is different. For example in one document I have about 50 code
blocks, which are about 2 to 8 lines long. Creating 50 files for this
purpose would be very inconvenient.
When I copy code from the rendered version then it's no problem, but
copying from the rst source is very error-prone due to the indentation,
e.g.,:
code:: sh
cat > file <<EOF
4spaces here instead of 2
and EOF does not work
EOF
|