DEV Community


Ruby IRB with Syntax Highlighting (and more!) in Ruby 2.7

Andy Zhao (he/him)
uh oh where'd my bio go!
・1 min read

Very excited to find out that Ruby 2.7 will introduce improvements to irb, Ruby's native REPL console. Some improvements are:

  • syntax highlighting!!!
  • multiline mode
  • auto-indentation
  • and more!

More details in this blog post I read it from:

I'm a big fan of this even though I use pry as my default Ruby REPL, mostly because it lets me use the main features I like from pry in irb.

Discussion (4)

ben profile image
Ben Halpern

Multiline mode seems really neat.

andy profile image
Andy Zhao (he/him) Author

Yeah, I definitely have copy and pasted methods from the editor before to get around the current version's issue.

olimpioadolfo profile image

Syntax highlight and auto-indetation🔥🔥🔥 can't wait...

jacobherrington profile image
Jacob Herrington (he/him)

Console cowboys need love too 🤠❤