bat - View files with syntax highlighting and Git integration
Views file contents with syntax highlighting, Git diff integration, line ranges, and configurable output styles.
Tags
Updated: 2026-09-09Capabilities
Typical Inputs
Typical Outputs
What this skill does
- View files with syntax highlighting
- Display specified line ranges
- Highlight Git diff changes
- Force explicit syntax language
- List supported themes and languages
- Configure pager and output styles
Inputs
- File paths
- Standard input streams
- Language names
- Line ranges
- Color theme names
Outputs
- Syntax-highlighted file contents
- Line-numbered text output
- Git diff line highlights
- List of available themes
- List of supported languages
Requirements
- bat executable
- Git repository for diff features
