Syntax highlighting/colorizing cat

前端 未结 18 1927
不思量自难忘°
不思量自难忘° 2020-12-02 03:39

Is there a method to colorize the output of cat, the way grep does.

For grep, in most consoles it displays a colored output hi

18条回答
  •  悲&欢浪女
    2020-12-02 04:24

    On OSX simply do brew install ccat.

    https://github.com/jingweno/ccat. Like cat but displays content with syntax highlighting. Built in Go.

提交回复
热议问题