Companion

object Companion

Functions

Link copied to clipboard

Built-in Atom One Dark theme.

Link copied to clipboard

Built-in Atom One Light theme.

Link copied to clipboard
fun fromAsset(context: Context, assetPath: String, name: String): HighlightTheme

Custom theme loaded from a Highlight.js CSS file in the app's assets/ folder.

Link copied to clipboard
fun fromColorMap(name: String, colorMap: Map<String, SpanStyle>, backgroundColor: Color? = null, defaultTextColor: Color? = null): HighlightTheme

Custom theme from a precomputed color map.

Link copied to clipboard
fun fromCss(cssText: String, name: String): HighlightTheme

Custom theme from raw Highlight.js CSS text.

Link copied to clipboard

Built-in Base16 Tomorrow light theme.

Link copied to clipboard

Built-in Base16 Tomorrow Night dark theme.