garabik / grc

generic colouriser
http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
Other
1.88k stars 162 forks source link

conf.sh / conf.bash - for shell scripts #73

Open sarnobat opened 7 years ago

sarnobat commented 7 years ago

I couldn't find a conf file for shell scripts. If one doesn't exist, could we create one? I sometimes like to do this:

cat run.sh | grcat ~/conf.sh

(I know grcat shouldn't be used directly but it is Unix idiomatic so very convenient to stick onto the end of whatever you were doing)

xPMo commented 6 years ago

I'd look at highlight, which is a versatile syntax highlighter for programming languages as opposed to this, which is built to highlight programs' output.

sarnobat commented 5 years ago

Thansk for the suggestion, I'll take a look.

sarnobat commented 5 years ago

These do the job nicely:

cat download_images_all.sh | highlight --out-format=ANSI
cat download_images_all.sh | highlight --syntax=c --out-format=ANSI