Package-level declarations
Types
Link copied to clipboard
data class AutoHighlightResult(val annotated: AnnotatedString, val detectedLanguage: String, val spanCount: Int, val durationMs: Long, val timings: HighlightTimings)
Result of a successful HighlightEngine.highlightAuto call.
Link copied to clipboard
Core engine that manages the hidden WebView and executes Highlight.js highlighting.
Link copied to clipboard
Exception hierarchy for compose-highlight engine failures.
Link copied to clipboard
object HighlightLanguage
Maps file extensions to Highlight.js language identifiers.
Link copied to clipboard
Metadata returned by HighlightEngine.getLanguage.
Link copied to clipboard
data class HighlightResult(val annotated: AnnotatedString, val spanCount: Int, val language: String, val durationMs: Long, val timings: HighlightTimings)
Result of a successful HighlightEngine.highlight call.
Link copied to clipboard
Represents a syntax highlighting theme backed by a Highlight.js CSS file.
Link copied to clipboard
Link copied to clipboard
object HljsSelectors
Known highlight.js CSS selector keys used throughout the library.
Link copied to clipboard
data class HtmlHighlightResult(val html: String, val durationMs: Long, val jsBridgeDuration: Duration = Duration.ZERO, val jsonUnescapeDuration: Duration = Duration.ZERO)
Result of a successful HighlightEngine.highlightToHtml call.
Link copied to clipboard
data class ThemedHighlightResult(val light: AnnotatedString, val dark: AnnotatedString, val durationMs: Long, val timings: HighlightTimings)
Holds both light and dark AnnotatedString results from a single highlight call. Used by HighlightEngine.highlightBothThemes.