Syntax highlighting is not working for html/xml language.
Note: Since "highlight" is not an option in "syntax" in "modules" I could not really try manually highlighting the code to see if that works, I tried creating customBlot but failed (maybe cause I didn't know what I was doing)
modules: {
syntax: {
highlight: (val) => // this function is not called anywhere so could not do manual highlight
}
}
Syntax highlighting is not working for html/xml language.
Note: Since "highlight" is not an option in "syntax" in "modules" I could not really try manually highlighting the code to see if that works, I tried creating customBlot but failed (maybe cause I didn't know what I was doing)
Steps for Reproduction
<tag attr>value</tag>
Expected behavior:
highlighted output should be
<span class="hljs-tag"><<span class="hljs-name">tag</span> <span class="hljs-attr">attr</span>></span>value<span class="hljs-tag"></<span class="hljs-name">tag</span>></span>
above was gained throughhljs.highlight('<tag attr>value</tag>', {language: 'xml'}).value
Actual output that we get
<span class="ql-token hljs-tag"><tag attr></span>value<span class="ql-token hljs-tag"></tag></span>
above output can be seen in inspector
Platforms:
Browser: Chrome : Version 126.0.6478.127 (Official Build) (64-bit) OS: Windows 10
Version:
2.0.2
thank you!