Home
Sign Up
Sign In
V2EX
›
macOS
让你的 cat less more 输出带语法高亮
KevinOfNeu
·
Jan 8, 2016
· 4850 views
This topic created in 3953 days ago, the information mentioned may be changed or developed.
在 Terminal 执行 cat less more 查看源代码的时候,多希望有语法高亮~~
实现的话,投机取巧。 repo 奉上,轻喷。。。
repo
repo
Less
cat
语法
4 replies
•
2016-01-09 19:41:00 +08:00
KevinOfNeu
OP
Jan 8, 2016
1
动图效果展示:
https://github.com/KevinOfNeu/colored-less-more-cat/blob/master/coloredlessmorecat.gif
yangg
Jan 8, 2016
2
这样? pygmentize test.js | less -R
KevinOfNeu
OP
Jan 8, 2016
3
@
yangg
基本是这样子 简单利用了下管道
dalang
Jan 9, 2016
4
我觉得这点内容专门放 repo 有点浪费,放到 gist 就足够了
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1378 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms ·
UTC 20:21
·
PVG 04:21
·
LAX 12:21
·
JFK 15:21
♥ Do have faith in what you're doing.
❯