← All features

Feature

Syntax Highlighting.

Fenced code blocks are syntax-highlighted with highlight.js and split into individual lines so you can comment on specific lines inside code - not just the block as a whole.

How it works

1

Supports Go, Python, JavaScript, TypeScript, Rust, Ruby, Java, C, C++, Shell, SQL, YAML, JSON, and more via highlight.js.

2

Each line inside a fenced code block is a separate commentable element. Select line 3 of a code block and leave a review note right there.

3

Highlighting respects your current theme - dark and light palettes are both fully styled.

4

Code blocks preserve whitespace and formatting exactly as written. Long lines wrap so nothing is hidden off-screen.

Why this matters

AI agents frequently produce output that mixes prose and code — a plan document that includes shell commands, a spec that has SQL examples, a markdown file with embedded TypeScript snippets. When you're reviewing that output, you need the code to actually render as code, not as a wall of monospace text.

Syntax highlighting makes errors visible. A wrong variable name or a mismatched bracket is much easier to spot when tokens are colored by role. When you're reviewing agent output for correctness, not just structure, that visual parsing matters.

Per-line commenting inside code blocks is the part that's easy to overlook. Most markdown renderers highlight the block as a whole. Crit splits fenced code blocks into individual lines so you can select lines 4-7 inside a code block and leave a comment there, the same way you would on any other part of the document.

How Crit compares

Standard markdown previewers (VS Code preview, Marked, etc.) render syntax highlighting but don't support comments. GitHub renders fenced code blocks with highlighting and allows PR comments at the file level, but you can't comment on a specific line inside a code block in a plain markdown file. Crit treats code blocks as first-class reviewable content.

Try it out

Install Crit and start reviewing agent output in seconds.

$ brew install tomasz-tomczyk/tap/crit
then run
$ crit or crit plan.md

Or download a pre-built binary from GitHub Releases.

More features