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

Use highlight.js styles other than those listed in the highlightStyle configuration option #678

Open
zspitz opened this issue Jun 18, 2022 · 1 comment

Comments

@zspitz
Copy link

zspitz commented Jun 18, 2022

I would like to use the vs2015 highlight.js style. It's not listed as one of the options for highlightStyle.

How can I do this?

@zspitz zspitz changed the title Use other highlight.js themes Use highlight.js styles other than those listed in the highlightStyle configuration option Jun 18, 2022
@FedericoStra
Copy link

Maybe the option none could be added to highlightStyle that doesn't inject any Highlight.js CSS in the generated <style> and then we could simply select the preferred style by putting something like

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/dark.min.css">

in the <head> section.

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

No branches or pull requests

3 participants