如何着色ruby中的整数

时间:2021-02-08 00:06:12

There are a lot of questions on SO about how to colorize ruby output - I saw this one first - but they all only change the color of strings. Is it possible to change the color of other classes? How could you change 3 to be blue in the console?

关于如何着色红宝石输出有很多问题 - 我先看了一下 - 但它们都只改变了字符串的颜色。是否可以改变其他类的颜色?怎么能在控制台中将3变成蓝色?

1 个解决方案

#1


3  

i use awesome print You can set the color classes. also has integration with IRB.

我使用awesome打印您可以设置颜色类。也与IRB整合。

#1


3  

i use awesome print You can set the color classes. also has integration with IRB.

我使用awesome打印您可以设置颜色类。也与IRB整合。