Re: Is there a plan to integrate fenced code blocks in rst?
Gökçe Aydos <[email protected]> Sun, 6 Dec 2020 21:01:37 +0100
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <[email protected]> |
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
smime.p7s
(application/pkcs7-signature, 5.3 KB) - not displayed