how to get color on command line with less

question

#1

I’d like to get color terminal output even when piping through more/less. I had expected

julia --color=yes myprogram.jl | less -R

to produce color output, but it doesn’t. What are the alternatives? Thanks!

(Julia 0.7)