linux:less-syntax-highlight
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:less-syntax-highlight [2022/01/20 15:20] – created Wulf Rajek | linux:less-syntax-highlight [2023/05/29 11:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| # Setup: " | # Setup: " | ||
| - | # Pipe Highlight to less | + | # Pipe Highlight to less (remove --line-numbers option for better copy& |
| - | export LESSOPEN=" | + | export LESSOPEN=" |
| export LESS=" -R" | export LESS=" -R" | ||
| + | # remove -N and --line-numbers for better copy& | ||
| alias less=' | alias less=' | ||
| alias more=' | alias more=' | ||
| # Use " | # Use " | ||
| - | alias cat=" | + | alias cat=" |
| # Setup JSON Syntax Highlighting | # Setup JSON Syntax Highlighting | ||
| Line 23: | Line 24: | ||
| Source: https:// | Source: https:// | ||
| + | |||
| + | On dark terminal, the following themes work well: | ||
| + | bluegreen | ||
| + | ekvoli | ||
| + | freya | ||
| + | moria | ||
| + | solarized-light | ||
| + | |||
| + | |||
| + | To only allow ansi control characters of text files, add to .bashrc | ||
| + | < | ||
| + | export LESS=" -R" | ||
| + | </ | ||
| + | |||
| + | |||
linux/less-syntax-highlight.1642692014.txt.gz · Last modified: (external edit)