Supported languages

Pygments supports an ever-growing range of languages. Watch this space…

Programming languages

Template languages

Other markup

  • Apache config files

  • Apache Pig

  • BBCode

  • CapDL

  • Cap’n Proto

  • CMake

  • Csound scores

  • CSS

  • Debian control files

  • Diff files

  • Dockerfiles

  • DTD

  • EBNF

  • E-mail headers

  • Extempore

  • Flatline

  • Gettext catalogs

  • Gnuplot script

  • Groff markup

  • Hexdumps

  • HTML

  • HTTP sessions

  • IDL

  • Inform

  • INI-style config files

  • IRC logs (irssi style)

  • Isabelle

  • JSGF notation

  • JSON, JSON-LD

  • Lean theorem prover

  • Lighttpd config files

  • Linux kernel log (dmesg)

  • LLVM assembly

  • LSL scripts

  • Makefiles

  • MoinMoin/Trac Wiki markup

  • MQL

  • MySQL

  • NCAR command language

  • Nginx config files

  • Nix language

  • NSIS scripts

  • Notmuch

  • PEG

  • POV-Ray scenes

  • Puppet

  • QML

  • Ragel

  • Redcode

  • ReST

  • Roboconf

  • Robot Framework

  • RPM spec files

  • Rql

  • RSL

  • Scdoc

  • Sieve

  • Singularity

  • SPARQL

  • SQL, also MySQL, SQLite

  • Squid configuration

  • TADS 3

  • Terraform

  • TeX

  • Thrift

  • TNT

  • TOML

  • Treetop grammars

  • USD (Universal Scene Description)

  • Varnish configs

  • VGL

  • Vim Script

  • WDiff

  • Web IDL

  • Windows batch files

  • XML

  • XSLT

  • YAML

  • YANG

  • Windows Registry files

… that’s all?

Well, why not write your own? Contributing to Pygments is easy and fun. Take a look at the docs on lexer development. Pull requests are welcome on GitHub.

Note: the languages listed here are supported in the development version. The latest release may lack a few of them.