类似于“cat”的命令行界面,具有语法高亮显示
项目描述
类似于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
项目详情
下载文件
下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。
源分布
syncat-1.0.2.tar.gz (4.8 kB 查看哈希值)
构建分布
syncat-1.0.2-py3-none-any.whl (9.4 kB 查看哈希值)