cel-tui
    Preparing search index...

    Function SyntaxHighlight

    • Render syntax-highlighted code as cel-tui primitives.

      Uses lextide synchronously at the component boundary while keeping a streaming parser state per language/theme cache entry. Append-only updates apply lextide's recall/stable/unstable deltas, while non-append edits reset the stream and replay the full snippet.

      Unknown languages render as plain text. The default theme is terminal-friendly and maps lextide token classes onto cel's ANSI palette slots while leaving base text on terminal defaults.

      Parameters

      • content: string

        Source code to render.

      • language: string

        Registered lextide language id or alias.

      • Optionalprops: SyntaxHighlightProps

        Optional theme override.

      Returns ContainerNode

      A VStack containing one highlighted line per child.