On tor, 2009-12-17 at 14:10 +1100, Jayen wrote: > Either it can't be done, or it's not well documented, but I want to be able > to colorize the output of lesspipe/lessfile. > > The closest attempts I could get were: > 1) > setenv LESSOPEN "| /bin/lesspipe %s | source-highlight --failsafe -s html -f > esc --style-file=esc.style" ; > which would only let me do x.html.gz > > 2) > setenv LESSOPEN "/bin/lessfile %s | source-highlight --failsafe --infer-lang > -f esc --style-file=esc.style" ; > which couldn't infer the input language, because it was on stdin > > 3) > setenv LESSOPEN "| /bin/lesspipe %s | > /usr/share/source-highlight/src-hilite-lesspipe.sh %s" ; > which segfaults (not sure why, it doesn't segfault normally trying to > colorize a gz) > > Any documentation on how to do this would be great.
http://petereisentraut.blogspot.com/2009/07/adding-color-to-console-code-syntax.html Does that help? -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

