Syntax highlighting in IRB || Script/Console


I would like to know if there is a way of changing colors for IRB
input ($stdin). What I am interested in “is having IRB highlighting
as I type”. Among other stuff, I would like to be able to:

  • set its background colours
  • have differing colours for strings, variables, keywords, e.t.c.

I do use Wirble and Term-ansicolor gems, and they are fine when it comes
output. But, I am interested in colouring irb && script/console terminal
input, i.e. I’m looking forward to having something like

This might not be a Rails question but some railers may have answers to

Viva RoR,

Software Developer | Baobab Health Trust (

Cell: +265 999 465 137 | +265 881 234 717

“Many people doubt open source software and probably don’t realize that
there is an alternative… which is just as good…” – Kevin Scannell