Forrest logo
back to the bat tool

bat:tldr:15e7d

bat: Display all supported languages.
$ bat --list-languages
try on your machine

The command "bat --list-languages" is used to display a list of supported programming languages by the bat command-line tool.

The term "bat" refers to the tool itself, which is short for "cat with syntax highlighting." Similar to the traditional "cat" command that displays the content of a file, "bat" enhances this by providing syntax highlighting for a variety of programming and markup languages. It is commonly used to view source code or text files in a more readable and visually appealing format.

By appending the "--list-languages" flag to the "bat" command, it instructs the tool to display a comprehensive list of the supported languages. This list helps users understand which languages they can view with syntax highlighting using the bat command. Each language mentioned in the list is typically represented by a unique identifier that can be used with the tool to highlight the syntax for that particular language.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the bat tool