splitbrain / dokuwiki-plugin-dw2pdf

A fork of Luigi Micco's PDF export plugin for DokuWiki
http://www.dokuwiki.org/plugin:dw2pdf
55 stars 68 forks source link

When exported as pdf, syntax highlighted code is render without colors #512

Open yguel opened 6 days ago

yguel commented 6 days ago

I would like code inside tags to render as they appear on screen with syntax highlighting. However with my dokuwiki installation it appears that syntax highlighting is skipped when dw2pdf renders the pages.

Is-it to be expected ? If no, has somebody experience to solve the issue ?

Klap-in commented 6 days ago

Does the print preview still include the colors?

yguel commented 6 days ago

If you mean the print preview from the print function of the browser, yes the colors are visible.

However I cannot use that solution because it does not render correctly the code blocks: when the size of code is important, dokuwiki code block renders it with a scroll bar. When using the print preview a small portion of code is visible, the one visible on screen with also the scroll bar visible. It is like a screenshot and the entire code is not displayed like it is with the dw2pdf plugin.