linux:less-syntax-highlight
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:less-syntax-highlight [2022/01/20 15:37] – 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=' | ||
Line 30: | Line 31: | ||
moria | moria | ||
solarized-light | solarized-light | ||
+ | |||
+ | |||
+ | To only allow ansi control characters of text files, add to .bashrc | ||
+ | < | ||
+ | export LESS=" -R" | ||
+ | </ | ||
+ | |||
+ |
linux/less-syntax-highlight.1642693063.txt.gz · Last modified: 2023/05/29 11:53 (external edit)