On Apr 27, 8:23 am, "
pipio...@googlemail.com"
<
pipio...@googlemail.com> wrote:
> Hi Krishnan,
>
> thank you for your answer. But with this way I can't set colors for
> the language specific keywords, comments or strings. Is there a way to
> combine this both things.
>
> Thank you for your help
>
> Bjoern
One other way to do this is to use an external tool to convert your
Perl script into marked up LaTeX code, i.e. it does the syntax
highlighting and verbatim conversion. Then you can use a simple Perl
script (I assume here you can program Perl) to put a \textcolor{this|
that}{ ... } in every line with alternating colors.
One tool which does this is 'texifyperl' from the 'texify' program
bundle. I have it on my Ubuntu box and don't now if is exists for
Windows or Mac, but I guess so. I'm not sure how to configure it to
get the colors you want, but there are other programs, too.
This method would also speed up subsequent LaTeX runs, because the
syntax highlighting does not has to be repeated.
Best,
Martin