Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sivel/syncat
Command line interface similar to cat with syntax highlighting
https://github.com/sivel/syncat
Last synced: 3 months ago
JSON representation
Command line interface similar to cat with syntax highlighting
- Host: GitHub
- URL: https://github.com/sivel/syncat
- Owner: sivel
- License: apache-2.0
- Created: 2017-12-19T21:23:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-12T16:22:09.000Z (almost 3 years ago)
- Last Synced: 2024-10-04T12:00:36.849Z (3 months ago)
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 14
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
syncat
======Command line interface similar to ``cat`` with syntax highlighting
Example
-------::
curl -s http://httpbin.org/get | syncat --json
Lexers
------Due to the large number of lexers, the list of lexers is hidden in the
default ``-h``/``--help`` output. Use ``syncat --lexer-help`` to list
all lexersUsage
-----::
usage: syncat [-h] [--style STYLE] [--lexer-help] [--lexer LEXER] [file]
positional arguments:
file File to print with syntax highlighting. Defaults to stdinoptional 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