2 ms·
There's a couple gems that help with this in ruby. Coolline[1] colors syntax in the readline as you type. There's a gem[2] that integrates this with Pry[3] (an
by deefour 15y ago
There's a couple gems that help with this in ruby.
Coolline[1] colors syntax in the readline as you type. There's a gem[2] that integrates this with Pry[3] (an alternative to irb). For colored output in Pry's REPL, awesome_print[4] can be integrated[5] using pry's .pryrc files.
[1]https://github.com/Mon-Ouie/coolline
[2]https://github.com/pry/pry-coolline
[3]https://github.com/pry/pry
[4]https://github.com/michaeldv/awesome_print
[5]https://gist.github.com/004b0cdfccf0e29d83e3