highlight Js Version
Returns the version string of the bundled Highlight.js library (e.g. "11.11.1").
The result is fetched from the JS engine on the first call and cached - subsequent calls return the cached value immediately without a WebView round-trip.
Automatically initializes the WebView if not yet ready.
engine.highlightJsVersion().onSuccess { version ->
println("Using Highlight.js $version")
}Content copied to clipboard
Return
Result wrapping the version string, 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.