docbook-apps

  • 1.  Color Syntax Highlighting (xslthl)

    Posted 03-22-2010 16:50
    Hi there,

    Does anyone knows why syntax highlighting is displayed as grayscale
    in PDF output while it is full of colors in HTML output ?

    Thanks
    --
    Mathieu



  • 2.  Re: [docbook-apps] Color Syntax Highlighting (xslthl)

    Posted 03-22-2010 18:18
    Mathieu Malaterre wrote:

    > Does anyone knows why syntax highlighting is displayed as grayscale
    > in PDF output while it is full of colors in HTML output ?

    Usually you produce PDF for printed output and it doesn't make sense to
    use colors there it just raises risk that color will result in very
    unpleasant rendering in B&W print. But you are free to customize
    templates in fo/highlight.xsl to output PDF in colors.

    --
    ------------------------------------------------------------------
    Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
    ------------------------------------------------------------------
    Professional XML consulting and training services
    DocBook customization, custom XSLT/XSL-FO document processing
    ------------------------------------------------------------------
    OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
    ------------------------------------------------------------------