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.
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
<style>and<script>), CSS, JavaScript, TypeScript, JSX, TSX, and JSON.Acceptance