mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-12-14 02:00:40 +01:00
1.9 KiB
1.9 KiB
bat-extras: prettybat
A script that uses various pretty-printing tools and bat to display code in your terminal.
Command Line
Synopsis:
prettybat [OPTIONS] [PATH...]
Options:
Every option is passed through to bat
.
See man bat
for more information.
Languages
Language | Formatter |
---|---|
JavaScript (JS, JSX) | prettier |
TypeScript (TS, TSX) | prettier |
CSS, SCSS, SASS | prettier |
Markdown | prettier |
JSON | prettier |
YAML | prettier |
HTML | prettier |
Rust | rustfmt |
Bash | shfmt |
C | ClangFormat |
C++ | ClangFormat |
Objective-C | ClangFormat |
Caveats
- The header displayed by bat will show
STDIN
instead of the filename. - The git changes sidebar will not work with files that have been formatted.
Installation
This script is a part of the bat-extras
suite of scripts. You can find install instructions here.
Issues?
If you find an issue or have a feature suggestion, make a pull request or issue through GitHub! Contributions are always welcome.