zsh-users / zsh-syntax-highlighting

Fish shell like syntax highlighting for Zsh.
github.com/zsh-users/zsh-syntax-highlighting
BSD 3-Clause "New" or "Revised" License
19.5k stars 1.32k forks source link

Console log JSON #932

Closed lobosan closed 1 year ago

lobosan commented 1 year ago

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
phy1729 commented 1 year ago

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.

lobosan commented 1 year ago

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