Julia: Syntax highlighting in the REPL?

Created on 14 Jul 2014  路  8Comments  路  Source: JuliaLang/julia

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.

REPL help wanted

Most helpful comment

FWIW https://github.com/KristofferC/OhMyREPL.jl provides syntax highlighting for the REPL.

All 8 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StefanKarpinski picture StefanKarpinski  路  3Comments

wilburtownsend picture wilburtownsend  路  3Comments

sbromberger picture sbromberger  路  3Comments

TotalVerb picture TotalVerb  路  3Comments

yurivish picture yurivish  路  3Comments