Sublime Forum

Colour change according to ASCII control characters

#1

When opening a log file, there might be some control characters that encode color changes. I can see the characters in sublime but I’d rather not see them and see their effect instead.

Is there such an option/plugin?

The functionality I am looking for is the -r option when using the less command, e.g.

less -r my.log

A concrete example of this would be:

[<0x1b>[1;34mINFO<0x1b>[0m ]

should instead show a nice blue

[INFO ]

0 Likes

#2

https://packagecontrol.io/packages/ANSIescape

1 Like

#3

Thanks that;s exactly what I was after!

0 Likes