bat
Verified for current stable LTS
Bat Command: Highlight Lines
Use for highlight_lines with Bat. Exact CLI syntax to highlight_lines using Bat.
When to use this: Use for highlight_lines with Bat.
Command Syntax
bat -H {10|5:10|:10|10:|10:+5} <path/to/file> bat -H `{10|5:10|:10|10:|10:+5`} <path/to/file> Command Breakdown
-H- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to highlight_lines using Bat.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Bat Command: Pretty Print
bat <path/to/file1 path/to/file2 ...> Bat Command: Concatenate bat <path/to/file1 path/to/file2 ...> > <path/to/target_file> Bat Command: Remove Decorations bat --style plain --pager never <path/to/file> Bat Command: Show Non Printable bat -A <path/to/file> Bat Command: Number Lines bat -n <path/to/file>