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 | htmlThe highlighted HTML with <span class="hljs-xxx"> token markup. |
String | languageThe detected language name, or null if detection failed. |
int | relevanceThe 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.