dokuwiki-plugin-dw2pdf icon indicating copy to clipboard operation
dokuwiki-plugin-dw2pdf copied to clipboard

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

Open yguel opened this issue 1 year ago • 2 comments

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 ?

yguel avatar Sep 17 '24 20:09 yguel

Does the print preview still include the colors?

Klap-in avatar Sep 18 '24 09:09 Klap-in

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.

yguel avatar Sep 18 '24 10:09 yguel