PostHog / PostHog/posthog

Syntax highlighting in plan output code blocks

Open
#76,243 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature/desktop
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
6h 51m
Merged PRs (30d)
232

Description

Code blocks rendered inside plan output don't have syntax highlighting. They render as plain monospace text, making longer snippets hard to scan.

Agent-rendered code blocks already get syntax highlighting (per #1050), so the plan output renderer is the gap.

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the plan output renderer and compare how it handles code blocks with the agent-rendered code-block path referenced in #1050. Confirm the relevant rendering behavior in the UI, then update the plan output path so its code blocks receive syntax highlighting like agent-rendered blocks.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.