Skip to content

Source view renders generated code as monochrome text #6301

Description

@Nameless-Monster-Nerd

Problem

The file viewer renders generated HTML source—and standalone CSS/JavaScript source—as monochrome text. This makes larger generated artifacts harder to scan in the desktop app.

Proposed behavior

  • Reuse the existing Shiki runtime; do not add another editor/highlighting dependency.
  • Highlight HTML (including embedded <style> and <script>), CSS, JavaScript, TypeScript, JSX, TSX, and JSON.
  • Follow the app's light, dark, and system themes.
  • Preserve source text and line-number gutters.
  • Fall back to plain text for unsupported or unusually large files.

Acceptance

  • A focused red/green web regression test covers language selection and colored tokens.
  • Existing copy/source behavior remains unchanged.
  • The PR includes before/after screenshots.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions