How to highlight the part of text? #197
-
I use it in this way
my text is like: 'text text text Bu result will be the same(with span): How can I apply this class and span in html to the rest(class="hljs-attr" etc.) and not parse it as separate text: 'text text text I found the method fixMarkup but I am not sure how to use it correctly... I assume that there is a way to change the existing markup onHighlight event when it processed, but in this way it is impossible to normal even replace it because the result html would be like:
I would like to find the appropriate way how to use it... thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Honestly, I don't know what fixMarkup does, you can ask on their main repo regarding the special cases, this is just a wrapper plugin and the component is meant for highlighting a block of text |
Beta Was this translation helpful? Give feedback.
Honestly, I don't know what fixMarkup does, you can ask on their main repo regarding the special cases, this is just a wrapper plugin and the component is meant for highlighting a block of text