Supported languages

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

Programming languages

  • ActionScript

  • Ada

  • ANTLR

  • AppleScript

  • Assembly (various)

  • Asymptote

  • Augeas

  • Awk

  • BBC Basic

  • Befunge

  • Boa

  • Boo

  • BrainFuck

  • C, C++

  • C#

  • Charm++ CI

  • Clojure

  • CoffeeScript

  • ColdFusion

  • Common Lisp

  • Coq

  • Cryptol (incl. Literate Cryptol)

  • Crystal

  • Cython

  • D

  • Dart

  • DCPU-16

  • Delphi

  • Dylan

  • Elm

  • Erlang

  • Ezhil Ezhil - A Tamil programming language

  • Factor

  • Fancy

  • Fennel

  • FloScript

  • Fortran

  • FreeFEM++

  • F#

  • GAP

  • Gherkin (Cucumber)

  • GL shaders

  • Groovy

  • Haskell (incl. Literate Haskell)

  • HLSL

  • HSpec

  • IDL

  • Io

  • Java

  • JavaScript

  • Lasso

  • LLVM

  • Logtalk

  • Lua

  • Matlab

  • MiniD

  • Modelica

  • Modula-2

  • MuPad

  • Nemerle

  • Nimrod

  • Objective-C

  • Objective-J

  • Octave

  • OCaml

  • PHP

  • Perl 5 and Perl 6

  • Pony

  • PovRay

  • PostScript

  • PowerShell

  • Prolog

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

  • REBOL

  • Red

  • Redcode

  • Ruby (incl. irb sessions)

  • Rust

  • S, S-Plus, R

  • Scala

  • Scheme

  • Scilab

  • SGF

  • Slash

  • Slurm

  • Smalltalk

  • SNOBOL

  • Tcl

  • Tera Term language

  • TOML

  • Vala

  • Verilog

  • VHDL

  • Visual Basic.NET

  • Visual FoxPro

  • XQuery

  • Zephir

Template languages

  • Cheetah templates

  • Django / Jinja templates

  • ERB (Ruby templating)

  • Genshi (the Trac template language)

  • JSP (Java Server Pages)

  • Myghty (the HTML::Mason based framework)

  • Mako (the Myghty successor)

  • Smarty templates (PHP templating)

  • Tea

Other markup

  • Apache config files

  • Bash shell scripts

  • BBCode

  • CMake

  • CSS

  • Debian control files

  • Diff files

  • DTD

  • Gettext catalogs

  • Gnuplot script

  • Groff markup

  • HTML

  • HTTP sessions

  • INI-style config files

  • IRC logs (irssi style)

  • Lighttpd config files

  • Makefiles

  • MoinMoin/Trac Wiki markup

  • MySQL

  • Nginx config files

  • POV-Ray scenes

  • Ragel

  • Redcode

  • ReST

  • Robot Framework

  • RPM spec files

  • SQL, also MySQL, SQLite

  • Squid configuration

  • TeX

  • tcsh

  • Vim Script

  • Windows batch files

  • XML

  • XSLT

  • YAML

… 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 and contact details.

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