Skip to content

Chapter 11: Output Styling


Terminal Output Format

Claude Code supports rich terminal output formats, including colors, styles, and structured displays.

Color Scheme Configuration

11.1 终端输出格式

json
{
  "ui": {
    "colorScheme": "auto",  // auto, light, dark, custom
    "colors": {
      "success": "#00ff00",
      "error": "#ff0000",
      "warning": "#ffff00",
      "info": "#0000ff"
    }
  }
}

Markdown Rendering

Claude Code automatically renders Markdown format:

Code Blocks:

11.2 Markdown 渲染

javascript
function hello() {
  console.log('Hello World');
}

Lists:

  • Item 1
  • Item 2
    • Sub-item

Tables:

NameAgeCity
Alice25NYC
Bob30SF

Custom Output

Configure Output Options

11.3 自定义输出

json
{
  "output": {
    "showLineNumbers": true,
    "syntaxHighlighting": true,
    "maxWidth": 120,
    "theme": "monokai"
  }
}

Summary

In this chapter, we learned:

  • ✅ Terminal output formats
  • ✅ Markdown rendering
  • ✅ Custom output options

Next Step: Chapter 12 introduces hooks!


Content is for learning and research only.