![Forrest logo](/images/logo.png)
bat:tldr:15e7d
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.