SyntaxHighlighter class for highlighting chat content with code blocks, participants, and timestamps.

SyntaxHighlighter

Constructors

Methods

  • Returns the CSS styles for the highlighted content, including code blocks, participants, and timestamps.

    Returns string

    The CSS styles.

  • Highlights the content of a chat segment by escaping HTML, highlighting code blocks, participants, and timestamps.

    Parameters

    • content: string
    • participants: string[]

    Returns string

    The content with highlighting applied.