supportedLanguages

Returns the list of language identifiers supported by the bundled Highlight.js.

The result is fetched from the JS engine on the first call and cached - subsequent calls return the cached list immediately without a WebView round-trip.

Automatically initializes the WebView if not yet ready.

val languages = engine.supportedLanguages()
languages.onSuccess { list ->
val isKotlinSupported = "kotlin" in list // true
}

Return

Result wrapping a sorted List of language name strings (e.g. "kotlin", "java", "python"), or Result.failure with a HighlightException on failure. Possible failures: HighlightException.WebViewInitFailed if the WebView could not be initialized, HighlightException.Timeout if the JS call exceeds the timeout, or HighlightException.JsExecutionFailed for other JS errors.