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

Display more than 1 code block #108

Open
AnonDev1312 opened this issue May 9, 2023 · 1 comment
Open

Display more than 1 code block #108

AnonDev1312 opened this issue May 9, 2023 · 1 comment

Comments

@AnonDev1312
Copy link

What is the correct way to display more than 1 code block?

If I try to use Highlighter on multiple code blocks on the same page, only the last one will get the CSS style.

I think this is because the element ID jsonFormatterParsed is re-used by multiple elements, but I can't find how to use a different ID

thanks

@S1SYPHOS
Copy link
Collaborator

Could you provide a code example?

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