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

Guenter Milde via Docutils-users <[email protected]> Tue, 8 Dec 2020 07:38:14 -0000 (UTC)
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2020-12-07, Gökçe Aydos wrote:

> [-- Type: text/plain, Encoding: quoted-printable --]

> On 07/12/2020 18:07, Alan G. Isaac wrote:
>> The include directive allows literal inclusion of fragments:

> Very good idea if I have a single file where I get my code blocks.

> I have many code snippets which are build on top of each other, or are 
> independent.

> I could put all the code fragments in a single file and address them 
> using the include directive. Then I would have to find a way to 
> synchronize the two views. I find this still inconvenient compared to a 
> single file solution.

> Does someone have a better solution?

* PyLit__, the bidirectional text/code converter.

* An editor with support for rectangular regions and/or (un)indenting.

* Markdown (with Docutils version 0.17b.dev).

Günter

__ https://pypi.org/project/pylit/




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

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