I want to have some program's output colorized as it apperas on terminal.
I know that utility named highlight does the this. But: it has a limited set of built-in language support, and I want coloring for e.g. some work-related daemon logs, for which I already made complex vim syntax files.
I know it is possible to use vim for syntax highlighting as less replacement (vimpager) or directly in terminal (vimcat). But, both these ways vim waits until EOF, and then display colored file -- it's useless for e.g. live daemon testing.
So: is it possible to use vim's syntax highlighting in "live mode"? Or maybe is there an automatic converter from vim's syntax files to highlight's language definitions?
pygmentizeis nice, but there's the same issue as withhighlight-- i'd have to write my own syntax file. Since there was no way to simply use my vim syntax file, I ended up writing a bash script with a bunch of sed-ing imitating most important aspects of the mentioned vim syntax file to color piped output from my programs. – quezak Nov 27 '13 at 12:58