Forrest logo
back to the pygmentize tool

pygmentize:tldr:19932

pygmentize: List available output formats.
$ pygmentize -L formatters
try on your machine

The command pygmentize -L formatters is used to provide a list of all the available formatters in Pygments.

Pygments is a syntax highlighting library that supports a wide range of programming languages and markup formats. It can be used from the command line or integrated into other programs to apply syntax highlighting to source code or text files.

The -L flag tells Pygments to list available options in a specified category, and in this case, it's the category of formatters. Formatters in Pygments are responsible for converting the highlighted code or text into a specific output format, such as HTML, LaTeX, or terminal colors.

So, when you run pygmentize -L formatters, it will display a list of all the available formatters that you can use with Pygments. This list will typically include the names and descriptions of different formatters along with their corresponding output formats.

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 pygmentize tool