Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux cat with syntax highlighting

#You can use bat/batcat
# batcat is a cat clone with syntax highlighting and git integration

#Installation
sudo apt install bat

#Using
batcat /the/text-file.txt

#Using alias to cat
alias cat='batcat'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linux #cat #syntax #highlighting
ADD COMMENT
Topic
Name
3+1 =