Commit Graph

4 Commits (4102175d981b495c377fd621eb46498b1b77a9f6)

Author SHA1 Message Date
sharkdp 82ca8804a2 Handle non-unicode characters in the preprocessor 5 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