I wanted to submit a pull request for this, but first wanted to get some feedback on how useful syntax highlighting in the REPL would be to other developers. Personally, I find it very useful for readability, especially when giving demonstrations or taking screenshots.
I would certainly like that :+1
I really like syntax highlighting wherever possible, I don't think you're going to find any pushback against the idea itself, so submitting a PR is a good idea. :)
Yeah, this would be very cool so if someone wants to tackle it, that would be great.
I would like to see this for example for the "less" function output. For example:
less(+,(Int, Int))
Would it make sense to create a separate issue for syntax highlighting of the output of "less"?
That's actually something that could probably be resolved quite simply and outside of Julia. The less()
function/macro punt to run(
$(get(ENV, "PAGER", "less")) +$(line)g $file)
. So if your $PAGER
and terminal support syntax highlighting it'll just work. I think. Some breadcrumbs here: http://stackoverflow.com/questions/5316360/syntax-highlighting-pager
FWIW https://github.com/KristofferC/OhMyREPL.jl provides syntax highlighting for the REPL.
Seems unlikely to happen in Base.
Most helpful comment
FWIW https://github.com/KristofferC/OhMyREPL.jl provides syntax highlighting for the REPL.