mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-19 12:26:38 +02:00
Print non-printable characters using caret notation (#2443)
When the new flag is set, non-printable characters are printed using caret notation.
This commit is contained in:
committed by
GitHub
parent
c5602f9766
commit
8f99a78cf1
@@ -13,6 +13,13 @@ Options:
|
||||
Show non-printable characters like space, tab or newline. This option can also be used to
|
||||
print binary files. Use '--tabs' to control the width of the tab-placeholders.
|
||||
|
||||
--nonprintable-notation <notation>
|
||||
Set notation for non-printable characters.
|
||||
|
||||
Possible values:
|
||||
* unicode (␇, ␊, ␀, ..)
|
||||
* caret (^G, ^J, ^@, ..)
|
||||
|
||||
-p, --plain...
|
||||
Only show plain style, no decorations. This is an alias for '--style=plain'. When '-p' is
|
||||
used twice ('-pp'), it also disables automatic paging (alias for '--style=plain
|
||||
|
@@ -7,30 +7,50 @@ Arguments:
|
||||
[FILE]... File(s) to print / concatenate. Use '-' for standard input.
|
||||
|
||||
Options:
|
||||
-A, --show-all Show non-printable characters (space, tab, newline, ..).
|
||||
-p, --plain... Show plain style (alias for '--style=plain').
|
||||
-l, --language <language> Set the language for syntax highlighting.
|
||||
-H, --highlight-line <N:M> Highlight lines N through M.
|
||||
--file-name <name> Specify the name to display for a file.
|
||||
-d, --diff Only show lines that have been added/removed/modified.
|
||||
--tabs <T> Set the tab width to T spaces.
|
||||
--wrap <mode> Specify the text-wrapping mode (*auto*, never, character).
|
||||
-S, --chop-long-lines Truncate all lines longer than screen width. Alias for
|
||||
'--wrap=never'.
|
||||
-n, --number Show line numbers (alias for '--style=numbers').
|
||||
--color <when> When to use colors (*auto*, never, always).
|
||||
--italic-text <when> Use italics in output (always, *never*)
|
||||
--decorations <when> When to show the decorations (*auto*, never, always).
|
||||
--paging <when> Specify when to use the pager, or use `-P` to disable (*auto*,
|
||||
never, always).
|
||||
-m, --map-syntax <glob:syntax> Use the specified syntax for files matching the glob pattern
|
||||
('*.cpp:C++').
|
||||
--theme <theme> Set the color theme for syntax highlighting.
|
||||
--list-themes Display all supported highlighting themes.
|
||||
--style <components> Comma-separated list of style elements to display (*default*,
|
||||
auto, full, plain, changes, header, header-filename,
|
||||
header-filesize, grid, rule, numbers, snip).
|
||||
-r, --line-range <N:M> Only print the lines from N to M.
|
||||
-L, --list-languages Display all supported languages.
|
||||
-h, --help Print help information (use `--help` for more detail)
|
||||
-V, --version Print version information
|
||||
-A, --show-all
|
||||
Show non-printable characters (space, tab, newline, ..).
|
||||
--nonprintable-notation <notation>
|
||||
Set notation for non-printable characters.
|
||||
-p, --plain...
|
||||
Show plain style (alias for '--style=plain').
|
||||
-l, --language <language>
|
||||
Set the language for syntax highlighting.
|
||||
-H, --highlight-line <N:M>
|
||||
Highlight lines N through M.
|
||||
--file-name <name>
|
||||
Specify the name to display for a file.
|
||||
-d, --diff
|
||||
Only show lines that have been added/removed/modified.
|
||||
--tabs <T>
|
||||
Set the tab width to T spaces.
|
||||
--wrap <mode>
|
||||
Specify the text-wrapping mode (*auto*, never, character).
|
||||
-S, --chop-long-lines
|
||||
Truncate all lines longer than screen width. Alias for '--wrap=never'.
|
||||
-n, --number
|
||||
Show line numbers (alias for '--style=numbers').
|
||||
--color <when>
|
||||
When to use colors (*auto*, never, always).
|
||||
--italic-text <when>
|
||||
Use italics in output (always, *never*)
|
||||
--decorations <when>
|
||||
When to show the decorations (*auto*, never, always).
|
||||
--paging <when>
|
||||
Specify when to use the pager, or use `-P` to disable (*auto*, never, always).
|
||||
-m, --map-syntax <glob:syntax>
|
||||
Use the specified syntax for files matching the glob pattern ('*.cpp:C++').
|
||||
--theme <theme>
|
||||
Set the color theme for syntax highlighting.
|
||||
--list-themes
|
||||
Display all supported highlighting themes.
|
||||
--style <components>
|
||||
Comma-separated list of style elements to display (*default*, auto, full, plain, changes,
|
||||
header, header-filename, header-filesize, grid, rule, numbers, snip).
|
||||
-r, --line-range <N:M>
|
||||
Only print the lines from N to M.
|
||||
-L, --list-languages
|
||||
Display all supported languages.
|
||||
-h, --help
|
||||
Print help information (use `--help` for more detail)
|
||||
-V, --version
|
||||
Print version information
|
||||
|
Reference in New Issue
Block a user