gpoore / minted

minted is a LaTeX package that provides syntax highlighting using the Pygments library. Highlighted source code can be customized using fancyvrb.
1.74k stars 126 forks source link

Write env content to file #385

Open maxmasetti opened 8 months ago

maxmasetti commented 8 months ago

Is there a way to write environment content to file in directory named after chapter number / section number? So you could have a dump of all the scripts (each with its extension, say .js, .py, and so on) organized by book index structure. Could be this a possible feature? thx

gpoore commented 8 months ago

There is no current way to do this, but something like this would definitely be useful. I am currently working on minted version 3. No new features are possible until that is mostly finished, likely at least a few months.

davidcarlisle commented 8 months ago

A quick hack to do this has been added at stackexchange, where this was also asked

https://tex.stackexchange.com/questions/708092/export-all-minted-code-fragments-to-files/708498#708498