public static class SyntaxHighlighter.HighlightResult extends Object
Contains the highlighted HTML, the detected language name, and a relevance score indicating the confidence of the detection.
| Modifier and Type | Field and Description |
|---|---|
String |
html
The highlighted HTML with
<span class="hljs-xxx"> token markup. |
String |
language
The detected language name, or
null if detection failed. |
int |
relevance
The relevance score (higher = more confident detection).
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
Returns a diagnostic string with language, relevance, and HTML length.
|
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.