Package-level declarations
Types
Visual style configuration for SyntaxHighlightedCode.
Marks an API as experimental within the compose-highlight library.
Default values and helper composables used by SyntaxHighlightedCode and CodeBlockStyle.
Default values used by SyntaxHighlightedTextEditor and rememberSyntaxHighlightedEditorValue.
Properties
CompositionLocal that provides the dark HighlightTheme configured in HighlightThemeProvider.
CompositionLocal that provides the active HighlightTheme to all SyntaxHighlightedCode composables in the subtree.
CompositionLocal that provides the light HighlightTheme configured in HighlightThemeProvider.
Functions
Provides HighlightTheme and a shared HighlightEngine to all SyntaxHighlightedCode composables in content.
Creates and remembers the built-in Dracula (dark) theme as an alias under the Alucard naming scheme. Makes the dark theme discoverable under the Alucard family name.
Creates and remembers the built-in Alucard (light) HighlightTheme.
Creates and remembers the built-in Atom One Dark HighlightTheme.
Creates and remembers the built-in Atom One Light HighlightTheme.
Creates and remembers the built-in Dracula (dark) HighlightTheme.
Creates and remembers the built-in Alucard (light) theme as an alias under the Dracula naming scheme. Makes the light theme discoverable under the Dracula family name.
Creates and remembers the built-in GitHub Dark HighlightTheme.
Creates and remembers the built-in GitHub Light HighlightTheme.
Pre-highlights code and remembers the resulting AnnotatedString.
Pre-highlights code for both light and dark themes in a single JS call.
Creates and remembers a HighlightEngine scoped to the composition.
Runs the debounce + syntax-highlight pipeline for a live code editor and returns the display TextFieldValue ready to pass directly to BasicTextField (or any other text field that accepts TextFieldValue).
Creates and remembers the built-in Base16 Tomorrow (light) HighlightTheme.
Creates and remembers the built-in Base16 Tomorrow Night (dark) HighlightTheme.
Displays syntax-highlighted code in a styled block.
This composable is marked experimental (ExperimentalHighlightApi). Call sites must opt in with @OptIn(ExperimentalHighlightApi::class) or propagate the annotation. The API surface (parameters, defaults, behavior) may change in future releases.