|
From: Alan G. I. <ala...@gm...> - 2020-12-07 17:07:55
|
The include directive allows literal inclusion of fragments: https://docutils.sourceforge.io/docs/ref/rst/directives.html#including-an-external-document-fragment hth, Alan Isaac On 12/6/2020 3:01 PM, Gökçe Aydos wrote: > 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. > On 06/12/2020 20:34, Alan G. Isaac wrote: >> Why copy/paste at all when you can just ``include`` code? > |