DEV Community

Andy Zhao (he/him)
Andy Zhao (he/him)

Posted on

17 8

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

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:
https://blog.saeloun.com/2019/09/23/new-irb-features.html

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.

Top comments (4)

Collapse
 
ben profile image
Ben Halpern

Multiline mode seems really neat.

Collapse
 
andy profile image
Andy Zhao (he/him)

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

Collapse
 
rnrnshn profile image
Olimpio

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

Collapse
 
jacobherrington profile image
Jacob Herrington (he/him)

Console cowboys need love too 🤠❤

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay