lgrind (see on CTAN) pretty-formats most codes, including Perl:
#lgrind -s
...
   C++  (CC)                         PERL  (pl)
...

Needs external processing of the pieces of code, and inclusion
in LyX through ERT \lgrindfile{foo.tex}
Package options allow to tune the layout.

lgrind -l pl foo.pl >foo.tex
produces a standalone latex file.



i've tried including the tex file with \lgrindfile, but i get a latex error, it doesent seem to recognize the control sequence ("control sequene never \defined"). do i need to put something in the preamble?

thanks

Reply via email to