-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Different styles on the same page #862
Comments
Hi! No, it won't work like that. We don't generate inline styling in the code blocks, instead we generate markup with pre-defined class names, like It may be possible though to create a Web component for highlight.js that would use a scoped stylesheets for individual code blocks. |
Ok, thanks for the explanation. BTW, it could be done like this, for example in highlight.js/src/styles/solarized_dark.css:
|
We have some plans to generate stylesheets in uniform way, but only after #348. |
Ok, that's cool :-) |
BTW, there's a way to prefix styles if you with help of LESS:
As a result you'll get:
That works perfectly! :) |
Hello,
Is it possible to use different styles on the same page? I want to specify style the same way that the language is specified:
Thanks!
The text was updated successfully, but these errors were encountered: