When I SSH into a Linux machine from Windows using MobaXTerm, I get the benefit of syntax highlighting (https://mobaxterm.mobatek.net/features.html --> see Syntax highlighting in terminal
). It automatically highlights keywords like error
, pass
, failed
, missing
, etc. I find this extremely useful when executing scripts that spew out a lot of debugging text -- the highlighting has helped me to notice errors that I have missed for several months due to the verbosity.
I know that programs like VIM have syntax highlighting, but it's at a program level, and is language (or file-type) specific.
I'm looking for the same highlighting as MobaXTerm, but at a Linux terminal level. Currently, I have to switch to Windows and SSH to the Linux machine just that have that feature, which is a chore. It would be nice if there is a plugin for the terminal.
Syntax highlighting in the terminal suggests few solutions, but requires the output to be piped to an external program.