Skip to content

Update highlight and/or lineHighlight on a specific element #3642

Answered by KaiWilke
c-marc asked this question in Q&A
Discussion options

You must be logged in to vote

I use Prism.highlightElement() on the < code > itself and line-numbers as well as line-highlight works for me on subsequent executions. Additional difference is that I've included a < code id="xyz" class="language-xyz match-braces rainbow-braces line-numbers">< /code > without a "language" attribute.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@c-marc
Comment options

Answer selected by c-marc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants