Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yguel opened this issue Sep 17, 2024 · 2 comments
Open

Comments

@yguel
Copy link

yguel commented Sep 17, 2024

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
Copy link
Collaborator

Klap-in commented Sep 18, 2024

Does the print preview still include the colors?

@yguel
Copy link
Author

yguel commented Sep 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants