# [texhax] filecontents in own environment

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed May 25 13:04:59 CEST 2011

Am 25.05.2011 11:26, schrieb Arno Trautmann:

> Now, this appearently did not work, as filecontents searches for
> \end{filecontents} and is not happy if not found in the source code. I
> also was not able to change it even to another name using \def or \let
> without complications.
>
> So, does anyone have an advice how I could realize what I want to, or at
> least some steps of it? I'd be happy about any hints,

read the last issue of "Die TeXnische Komödie", Dantes journal.
There you'll find how it can be done with package fancyvrb

Herbert