Skip to content

Add syntax highlighting to Advice for Humans window#47

Merged
erikdarlingdata merged 1 commit intodevfrom
feature/styled-advice-window
Mar 5, 2026
Merged

Add syntax highlighting to Advice for Humans window#47
erikdarlingdata merged 1 commit intodevfrom
feature/styled-advice-window

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • Replaces plain monospace TextBox with color-coded styled text in the Advice for Humans window
  • Blue section headers (=== ... ===)
  • Red/orange/blue warning severity tags ([Critical], [Warning], [Info])
  • Green CREATE INDEX statements with normalized indentation for multi-line blocks
  • Grey labels with white values on key-value lines
  • Red bold [SNIFFING] markers
  • Clipboard copy still uses raw plain text

Test plan

  • Open a plan with warnings, click Advice for Humans — text is color-coded
  • Missing index CREATE statements are fully green including ON/INCLUDE lines
  • ON/INCLUDE lines aligned with CREATE line
  • Copy to Clipboard copies raw plain text (unchanged)
  • Advice for Robots (JSON) still renders normally

🤖 Generated with Claude Code

Color-codes the text output by line type: blue section headers, red/orange/blue
warning severities, green CREATE INDEX statements (with normalized indentation
for multi-line blocks), grey labels with white values, and red SNIFFING markers.
Clipboard copy still uses raw plain text.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 58273ac into dev Mar 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant