On Sat, 22 Mar 2003, Dekel Tsur wrote:
> On Sat, Mar 22, 2003 at 12:31:26AM +0100, Guido Ostkamp wrote:
> > However, I haven't found a comfortable way to import sourcecode from
> > an existing ASCII-file without loosing all the formatting - i.e. the
> > indentation with blanks and/or tabs in front of each line and the line
> > breaks, which is crucial for the readability of sourcecode.
>
> Insert->Include file, and select "verbatim" in the dialog. Note that
> this will NOT preserve tabs, so either use a tab2space utility on the
> file, or use the moreverb or listing package (in fact, the listing
> package is better as it performs "pretty printing").

Unfortunately, this is not what I want as it is not an import, because I
cannot see the contents of the file inside Lyx. Also I would have to
deliver another file should I want to share the document in source form
with others.

What I am looking for is an "Insert->Insert File->Ascii as Lyx-Code".

Regards,

Guido

Reply via email to