类似于“cat”的命令行界面,语法突出显示
syncat的Python项目详细描述
命令行界面类似于cat,语法突出显示
示例
curl -s http://httpbin.org/get | syncat --json
雷克萨斯
由于词汇量很大,词汇量列表隐藏在 默认-h/--help输出。使用syncat --lexer-help列出 所有词汇表
用法
usage: syncat [-h] [--style STYLE] [--lexer-help] [--lexer LEXER] [file] positional arguments: file File to print with syntax highlighting. Defaults to stdin optional arguments: -h, --help show this help message and exit --style STYLE Syntax highlighting style. Choices: abap algol algol_nu arduino autumn borland bw colorful default emacs friendly fruity igor lovelace manni monokai murphy native paraiso-dark paraiso-light pastie perldoc rainbow_dash rrt solarized256 tango trac vim vs xcode --lexer-help List help and options for the --lexer argument --lexer LEXER Lexer to use for syntax highlighting. Defaults to guessing based on the file contents. Use --lexer-help for a list of all lexers. Can be used in the form of --lexer LEXER or as --LEXER such as --lexer json or --json