Re: Is there a plan to integrate fenced code blocks in rst?

"Alan G. Isaac" <[email protected]> Mon, 7 Dec 2020 12:07:41 -0500
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
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?
 >



_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.