> > I hope there is another solution that doing it with an ERT-inset... > > Insert -> Program Listing,
In case you do not know, inset->file->child document->listings allows you to insert files (or lines of files), and you can set global listings parameters in document->settings. There are many options for listings and you would better read listings manual if you plan to use listings extensively. Bo