zsh-users/zsh-syntax-highlighting

Console log JSON

lobosan opened this issue · 2 comments

Hi, I'm console logging a JSON but the text is all white.

image

However, I would like to see it with colors like the following picture, where numbers are yellow, strings are green and timestamp is purple

image

zsh-syntax-highlighting highlights commands typed on the zsh command line. It does not (and cannot really) highlight the output of commands as that is written directly to the terminal. There exist other projects to colorize the output of commands they wrap or text from stdin. You might try seeing if one of those will suit your needs.

@phy1729 thanks for the clarification.
Can you please recommend some projects to colorize the output of commands?