Supported languages

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

Programming languages

  • ActionScript

  • Ada

  • Agda (incl. literate)

  • Alloy

  • AMPL

  • ANTLR

  • APL

  • AppleScript

  • Assembly (various)

  • Asymptote

  • Augeas

  • AutoIt

  • Awk

  • BBC Basic

  • Befunge

  • BlitzBasic

  • Boa

  • Boo

  • Boogie

  • BrainFuck

  • C, C++ (incl. dialects like Arduino)

  • C#

  • Chapel

  • Charm++ CI

  • Cirru

  • Clay

  • Clean

  • Clojure

  • CoffeeScript

  • ColdFusion

  • Common Lisp

  • Component Pascal

  • Coq

  • Croc (MiniD)

  • Cryptol (incl. Literate Cryptol)

  • Crystal

  • Cypher

  • Cython

  • D

  • Dart

  • DCPU-16

  • Delphi

  • Dylan (incl. console)

  • Eiffel

  • Elm

  • Emacs Lisp

  • Email

  • Erlang (incl. shell sessions)

  • Ezhil

  • Factor

  • Fancy

  • Fantom

  • Fennel

  • FloScript

  • Fortran

  • FreeFEM++

  • F#

  • GAP

  • Gherkin (Cucumber)

  • GLSL shaders

  • Golo

  • Gosu

  • Groovy

  • Haskell (incl. Literate Haskell)

  • Haxe

  • HLSL

  • HSpec

  • Hy

  • IDL

  • Idris (incl. Literate Idris)

  • Igor Pro

  • Io

  • Jags

  • Java

  • JavaScript

  • Jasmin

  • Jcl

  • Julia

  • Kotlin

  • Lasso (incl. templating)

  • Limbo

  • LiveScript

  • LLVM MIR

  • Logtalk

  • Logos

  • Lua

  • Mathematica

  • Matlab

  • MiniScript

  • Modelica

  • Modula-2

  • Monkey

  • Monte

  • MoonScript

  • Mosel

  • MuPad

  • NASM

  • Nemerle

  • NesC

  • NewLISP

  • Nimrod

  • Nit

  • Notmuch

  • NuSMV

  • Objective-C

  • Objective-J

  • Octave

  • OCaml

  • Opa

  • OpenCOBOL

  • ParaSail

  • Pawn

  • PHP

  • Perl 5

  • Pike

  • Pony

  • PovRay

  • PostScript

  • PowerShell

  • Praat

  • Prolog

  • Python 2.x and 3.x (incl. console sessions and tracebacks)

  • QBasic

  • Racket

  • Raku a.k.a. Perl 6

  • ReasonML

  • REBOL

  • Red

  • Redcode

  • Rexx

  • Ride

  • Ruby (incl. irb sessions)

  • Rust

  • S, S-Plus, R

  • Scala

  • Scdoc

  • Scheme

  • Scilab

  • SGF

  • Shell scripts (Bash, Tcsh, Fish)

  • Shen

  • Silver

  • Slash

  • Slurm

  • Smalltalk

  • SNOBOL

  • Snowball

  • Solidity

  • SourcePawn

  • Stan

  • Standard ML

  • Stata

  • Swift

  • Swig

  • SuperCollider

  • Tcl

  • Tera Term language

  • TypeScript

  • TypoScript

  • USD

  • Unicon

  • Urbiscript

  • Vala

  • VBScript

  • Verilog, SystemVerilog

  • VHDL

  • Visual Basic.NET

  • Visual FoxPro

  • Whiley

  • Xtend

  • XQuery

  • Zeek

  • Zephir

  • Zig

Template languages

  • Angular templates

  • Cheetah templates

  • ColdFusion

  • Django / Jinja templates

  • ERB (Ruby templating)

  • Evoque

  • Genshi (the Trac template language)

  • Handlebars

  • JSP (Java Server Pages)

  • Liquid

  • Myghty (the HTML::Mason based framework)

  • Mako (the Myghty successor)

  • Slim

  • Smarty templates (PHP templating)

  • Tea

  • Twig

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

  • SPARQL

  • SQL, also MySQL, SQLite

  • Squid configuration

  • TADS 3

  • Terraform

  • TeX

  • Thrift

  • TOML

  • Treetop grammars

  • USD (Universal Scene Description)

  • Varnish configs

  • VGL

  • Vim Script

  • WDiff

  • Web IDL

  • Windows batch files

  • XML

  • XSLT

  • YAML

  • 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.