Commit Graph

7 Commits (fde00eec98035b59d3c91b65c0746f81252e3184)

Author SHA1 Message Date
sharkdp e81f9b23e6 Fix `--show-all` for UTF-16 encoding 6 years ago
sharkdp 50dc4a79b0 Display line-feed as instead of 6 years ago
sharkdp 8fa8f44706 Use `↹` character if tab-width == 1. 6 years ago
sharkdp ecd862d9ff Feature: Highlight non-printable characters
Adds a new `-A`/`--show-all` option (in analogy to GNU Linux `cat`s option) that
highlights non-printable characters like space, tab or newline.

This works in two steps:
- **Preprocessing**: replace space by `•`, replace tab by `├──┤`, replace
newline by `␤`, etc.
- **Highlighting**: Use a newly written Sublime syntax to highlight
these special symbols.

Note: This feature is not technically a drop-in replacement for GNU `cat`s
`--show-all` but it has the same purpose.
6 years ago
eth-p d90797f8e9
Fixed tab expansion not working in --wrap=never mode. 6 years ago
eth-p b4096e5627
Moved tab expansion to happen after syntax highlighting. 6 years ago
eth-p b23ff24ebc
Added tab expansion preprocessing step. 6 years ago