Skip to content

Evaluate Twinkleplop for terminal code highlighting #1633

Description

@sentry-junior

Terminal Markdown code blocks use a different highlighter from the local UI, so the advertised Twinkleplop-versus-Shiki speedups do not establish a benefit here. This task tracks evaluating terminal suitability rather than committing to a replacement.

  • The Markdown formatter uses cli-highlight, backed by highlight.js. That dependency renders HTML and parses it into ANSI output; Twinkleplop exposes HTML or flat token spans, not a compatible terminal rendering API.
  • No direct terminal performance comparison has been run. Startup, packaged size, ANSI output, language coverage/autodetection and plain/NO_COLOR behavior remain evaluation concerns. highlight.js is absent from the published comparison.
  • SQL formatting is outside this scope: @sentry/sqlish provides tolerant parsing, parameter recognition and structural formatting in addition to coloring.

via byk.

--

View Junior Session [Sentry]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

jaredTrigger the Jared agent to work on stuff

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions