jmerelo has asked for the wisdom of the Perl Monks concerning the following question:

I have used the example that comes with Syntax::Highlight::Engine::Kate and changed it so that it transforms Perl code into Docbook; however, it's not too exhaustive, and probably not ideal. What I want to do is to convert Perl code to something that can be included into a DocBook article or tutorial. żAny other idea?

Replies are listed 'Best First'.
Re: Perl to DocBook
by ghenry (Vicar) on Jul 08, 2006 at 20:45 UTC
      Yep, that's what I'm using, but I would like the Perl code to be automatically DocBook-tagged, if possible. I've done a bit towards it, but not enough!

        I don't understand. Where is this code?

        What more do you need other than <programlisting>?

        Walking the road to enlightenment... I found a penguin and a camel on the way.....
        Fancy a yourname@perl.me.uk? Just ask!!!
Re: Perl to DocBook
by planetscape (Chancellor) on Jul 08, 2006 at 21:04 UTC

    Something else that might help is Super Searching for "syntax highlighting", or have a look at code2html.

    HTH,

    planetscape
      Yep, code2html might be a good option, but I rather would like something like code2docbook