GitHub Syntax Highlighting CheatSheet

Data taken from linguist as of Mon Jan 09 2017 09:34:44 GMT+0000 (UTC)

1C Enterprise

1centerprise
.bsl .os

ABAP

abap
.abap

ABNF

abnf
.abnf

AGS Script

agsscript, ags
.asc .ash

AMPL

ampl
.ampl .mod

ANTLR

antlr
.g4

API Blueprint

apiblueprint
.apib

APL

apl
.apl .dyalog

ASN.1

asn1
.asn .asn1

ASP

asp, aspx, aspx-vb
.asp .asax .ascx .ashx .asmx .aspx .axd

ATS

ats, ats2
.dats .hats .sats

ActionScript

actionscript, actionscript 3, actionscript3, as3
.as

Ada

ada, ada95, ada2005
.adb .ada .ads

Agda

agda
.agda

Alloy

alloy
.als

Alpine Abuild

alpineabuild, abuild, apkbuild

Ant Build System

antbuildsystem

ApacheConf

apacheconf, aconf, apache
.apacheconf .vhost

Apex

apex
.cls

Apollo Guidance Computer

apolloguidancecomputer
.agc

AppleScript

applescript, osascript
.applescript .scpt

Arc

arc
.arc

Arduino

arduino
.ino

AsciiDoc

asciidoc
.asciidoc .adoc .asc

AspectJ

aspectj
.aj

Assembly

assembly, nasm
.asm .a51 .inc .nasm

Augeas

augeas
.aug

AutoHotkey

autohotkey, ahk
.ahk .ahkl

AutoIt

autoit, au3, AutoIt3, AutoItScript
.au3

Awk

awk
.awk .auk .gawk .mawk .nawk

Batchfile

batchfile, bat, batch, dosbatch, winbatch
.bat .cmd

Befunge

befunge
.befunge

Bison

bison
.bison

BitBake

bitbake
.bb

Blade

blade
.blade .blade.php

BlitzBasic

blitzbasic, b3d, blitz3d, blitzplus, bplus
.bb .decls

BlitzMax

blitzmax, bmax
.bmx

Bluespec

bluespec
.bsv

Boo

boo
.boo

Brainfuck

brainfuck
.b .bf

Brightscript

brightscript
.brs

Bro

bro
.bro

C

c
.c .cats .h .idc .w

C#

c, csharp
.cs .cake .cshtml .csx

C++

c, cpp
.cpp .c++ .cc .cp .cxx .h .h++ .hh .hpp .hxx .inc .inl .ipp .re .tcc .tpp

C-ObjDump

cobjdump
.c-objdump

C2hs Haskell

c2hshaskell, c2hs
.chs

CLIPS

clips
.clp

CMake

cmake
.cmake .cmake.in

COBOL

cobol
.cob .cbl .ccp .cobol .cpy

COLLADA

collada
.dae

CSON

cson
.cson

CSS

css
.css

CSV

csv
.csv

Cap'n Proto

capnproto
.capnp

CartoCSS

cartocss, Carto
.mss

Ceylon

ceylon
.ceylon

Chapel

chapel, chpl
.chpl

Charity

charity
.ch

ChucK

chuck
.ck

Cirru

cirru
.cirru

Clarion

clarion
.clw

Clean

clean
.icl .dcl

Click

click
.click

Clojure

clojure
.clj .boot .cl2 .cljc .cljs .cljs.hl .cljscm .cljx .hic

CoffeeScript

coffeescript, coffee, coffee-script
.coffee ._coffee .cake .cjsx .iced

ColdFusion

coldfusion, cfm, cfml, coldfusion html
.cfm .cfml

ColdFusion CFC

coldfusioncfc, cfc
.cfc

Common Lisp

commonlisp, lisp
.lisp .asd .cl .l .lsp .ny .podsl .sexp

Component Pascal

componentpascal, delphi, objectpascal
.cp .cps

Cool

cool
.cl

Coq

coq
.coq .v

Cpp-ObjDump

cppobjdump, c++-objdump
.cppobjdump .c++-objdump .c++objdump .cpp-objdump .cxx-objdump

Creole

creole
.creole

Crystal

crystal
.cr

Csound

csound, csound-orc
.orc .udo

Csound Document

csounddocument, csound-csd
.csd

Csound Score

csoundscore, csound-sco
.sco

Cuda

cuda
.cu .cuh

Cycript

cycript
.cy

Cython

cython, pyrex
.pyx .pxd .pxi

D

d
.d .di

D-ObjDump

dobjdump
.d-objdump

DIGITAL Command Language

digitalcommandlanguage, dcl
.com

DM

dm, byond
.dm

DNS Zone

dnszone
.zone .arpa

DTrace

dtrace, dtrace-script
.d

Darcs Patch

darcspatch, dpatch
.darcspatch .dpatch

Dart

dart
.dart

Diff

diff, udiff
.diff .patch

Dockerfile

dockerfile
.dockerfile

Dogescript

dogescript
.djs

Dylan

dylan
.dylan .dyl .intr .lid

E

e
.E

EBNF

ebnf
.ebnf

ECL

ecl
.ecl .eclxml

ECLiPSe

eclipse
.ecl

EJS

ejs
.ejs

EQ

eq
.eq

Eagle

eagle
.sch .brd

Ecere Projects

ecereprojects
.epj

Eiffel

eiffel
.e

Elixir

elixir
.ex .exs

Elm

elm
.elm

Emacs Lisp

emacslisp, elisp, emacs
.el .emacs .emacs.desktop

EmberScript

emberscript
.em .emberscript

Erlang

erlang
.erl .app.src .es .escript .hrl .xrl .yrl

F#

f, fsharp
.fs .fsi .fsx

FLUX

flux
.fx .flux

Factor

factor
.factor

Fancy

fancy
.fy .fancypack

Fantom

fantom
.fan

Filebench WML

filebenchwml
.f

Filterscript

filterscript
.fs

Formatted

formatted
.for .eam.fs

Forth

forth
.fth .4th .f .for .forth .fr .frt .fs

Fortran

fortran
.f90 .f .f03 .f08 .f77 .f95 .for .fpp

FreeMarker

freemarker, ftl
.ftl

Frege

frege
.fr

G-code

gcode
.g .gco .gcode

GAMS

gams
.gms

GAP

gap
.g .gap .gd .gi .tst

GCC Machine Description

gccmachinedescription
.md

GDB

gdb
.gdb .gdbinit

GDScript

gdscript
.gd

GLSL

glsl
.glsl .fp .frag .frg .fs .fsh .fshader .geo .geom .glslv .gshader .shader .vert .vrx .vsh .vshader

GN

gn
.gn .gni

Game Maker Language

gamemakerlanguage
.gml

Genie

genie
.gs

Genshi

genshi, xml+genshi, xml+kid
.kid

Gentoo Ebuild

gentooebuild
.ebuild

Gentoo Eclass

gentooeclass
.eclass

Gettext Catalog

gettextcatalog, pot
.po .pot

Gherkin

gherkin, cucumber
.feature

Glyph

glyph
.glf

Gnuplot

gnuplot
.gp .gnu .gnuplot .plot .plt

Go

go, golang
.go

Golo

golo
.golo

Gosu

gosu
.gs .gst .gsx .vark

Grace

grace
.grace

Gradle

gradle
.gradle

Grammatical Framework

grammaticalframework, gf
.gf

Graph Modeling Language

graphmodelinglanguage
.gml

GraphQL

graphql
.graphql

Graphviz (DOT)

graphvizdot
.dot .gv

Groovy

groovy
.groovy .grt .gtpl .gvy

Groovy Server Pages

groovyserverpages, gsp, java server page
.gsp

HCL

hcl
.hcl .tf

HLSL

hlsl
.hlsl .fx .fxh .hlsli

HTML

html, xhtml
.html .htm .html.hl .inc .st .xht .xhtml

HTML+Django

htmldjango, django, html+django/jinja, html+jinja, htmldjango, njk, nunjucks
.jinja .mustache .njk

HTML+ECR

htmlecr, ecr
.ecr

HTML+EEX

htmleex, eex
.eex

HTML+ERB

htmlerb, erb
.erb .erb.deface

HTML+PHP

htmlphp
.phtml

HTTP

http
.http

Hack

hack
.hh .php

Haml

haml
.haml .haml.deface

Handlebars

handlebars, hbs, htmlbars
.handlebars .hbs

Harbour

harbour
.hb

Haskell

haskell
.hs .hsc

Haxe

haxe
.hx .hxsl

Hy

hy, hylang
.hy

HyPhy

hyphy
.bf

IDL

idl
.pro .dlm

IGOR Pro

igorpro, igor, igorpro
.ipf

INI

ini, dosini
.ini .cfg .prefs .pro .properties

IRC log

irclog, irc, irc logs
.irclog .weechatlog

Idris

idris
.idr .lidr

Inform 7

inform7, i7, inform7
.ni .i7x

Inno Setup

innosetup
.iss

Io

io
.io

Ioke

ioke
.ik

Isabelle

isabelle
.thy

Isabelle ROOT

isabelleroot

J

j
.ijs

JFlex

jflex
.flex .jflex

JSON

json
.json .geojson .JSON-tmLanguage .topojson

JSON5

json5
.json5

JSONLD

jsonld
.jsonld

JSONiq

jsoniq
.jq

JSX

jsx
.jsx

Jasmin

jasmin
.j

Java

java
.java

Java Server Pages

javaserverpages, jsp
.jsp

JavaScript

javascript, js, node
.js ._js .bones .es .es6 .frag .gs .jake .jsb .jscad .jsfl .jsm .jss .njs .pac .sjs .ssjs .xsjs .xsjslib

Julia

julia
.jl

Jupyter Notebook

jupyternotebook, IPython Notebook
.ipynb

KRL

krl
.krl

KiCad

kicad
.sch .brd .kicad_pcb

Kit

kit
.kit

Kotlin

kotlin
.kt .ktm .kts

LFE

lfe
.lfe

LLVM

llvm
.ll

LOLCODE

lolcode
.lol

LSL

lsl
.lsl .lslp

LabVIEW

labview
.lvproj

Lasso

lasso, lassoscript
.lasso .las .lasso8 .lasso9 .ldml

Latte

latte
.latte

Lean

lean
.lean .hlean

Less

less
.less

Lex

lex, flex
.l .lex

LilyPond

lilypond
.ly .ily

Limbo

limbo
.b .m

Linker Script

linkerscript
.ld .lds

Linux Kernel Module

linuxkernelmodule
.mod

Liquid

liquid
.liquid

Literate Agda

literateagda
.lagda

Literate CoffeeScript

literatecoffeescript, litcoffee
.litcoffee

Literate Haskell

literatehaskell, lhaskell, lhs
.lhs

LiveScript

livescript, live-script, ls
.ls ._ls

Logos

logos
.xm .x .xi

Logtalk

logtalk
.lgt .logtalk

LookML

lookml
.lookml

LoomScript

loomscript
.ls

Lua

lua
.lua .fcgi .nse .pd_lua .rbxs .wlua

M

m, mumps
.mumps .m

M4

m4
.m4

M4Sugar

m4sugar, autoconf
.m4

MAXScript

maxscript
.ms .mcr

MQL4

mql4
.mq4 .mqh

MQL5

mql5
.mq5 .mqh

MTML

mtml
.mtml

MUF

muf
.muf .m

Makefile

makefile, bsdmake, make, mf
.mak .d .make .mk .mkfile

Mako

mako
.mako .mao

Markdown

markdown
.md .markdown .mkd .mkdn .mkdown .ron

Mask

mask
.mask

Mathematica

mathematica, mma
.mathematica .cdf .m .ma .mt .nb .nbp .wl .wlt

Matlab

matlab, octave
.matlab .m

Maven POM

mavenpom

Max

max, max/msp, maxmsp
.maxpat .maxhelp .maxproj .mxt .pat

MediaWiki

mediawiki
.mediawiki .wiki

Mercury

mercury
.m .moo

Metal

metal
.metal

MiniD

minid
.minid

Mirah

mirah
.druby .duby .mir .mirah

Modelica

modelica
.mo

Modula-2

modula2
.mod

Module Management System

modulemanagementsystem
.mms .mmk

Monkey

monkey
.monkey

Moocode

moocode
.moo

MoonScript

moonscript
.moon

Myghty

myghty
.myt

NCL

ncl
.ncl

NL

nl
.nl

NSIS

nsis
.nsi .nsh

Nemerle

nemerle
.n

NetLinx

netlinx
.axs .axi

NetLinx+ERB

netlinxerb
.axs.erb .axi.erb

NetLogo

netlogo
.nlogo

NewLisp

newlisp
.nl .lisp .lsp

Nginx

nginx, nginx configuration file
.nginxconf .vhost

Nim

nim
.nim .nimrod

Ninja

ninja
.ninja

Nit

nit
.nit

Nix

nix, nixos
.nix

Nu

nu, nush
.nu

NumPy

numpy
.numpy .numpyw .numsc

OCaml

ocaml
.ml .eliom .eliomi .ml4 .mli .mll .mly

ObjDump

objdump
.objdump

Objective-C

objectivec, obj-c, objc, objectivec
.m .h

Objective-C++

objectivec, obj-c++, objc++, objectivec++
.mm

Objective-J

objectivej, obj-j, objectivej, objj
.j .sj

Omgrofl

omgrofl
.omgrofl

Opa

opa
.opa

Opal

opal
.opal

OpenCL

opencl
.cl .opencl

OpenEdge ABL

openedgeabl, progress, openedge, abl
.p .cls

OpenRC runscript

openrcrunscript, openrc

OpenSCAD

openscad
.scad

OpenType Feature File

opentypefeaturefile, AFDKO
.fea

Org

org
.org

Ox

ox
.ox .oxh .oxo

Oxygene

oxygene
.oxygene

Oz

oz
.oz

PAWN

pawn
.pwn .inc

PHP

php, inc
.php .aw .ctp .fcgi .inc .php3 .php4 .php5 .phps .phpt

PLSQL

plsql
.pls .pck .pkb .pks .plb .plsql .sql

PLpgSQL

plpgsql
.sql

POV-Ray SDL

povraysdl, pov-ray, povray
.pov .inc

Pan

pan
.pan

Papyrus

papyrus
.psc

Parrot

parrot
.parrot

Parrot Assembly

parrotassembly, pasm
.pasm

Parrot Internal Representation

parrotinternalrepresentation, pir
.pir

Pascal

pascal
.pas .dfm .dpr .inc .lpr .pascal .pp

Perl

perl
.pl .al .cgi .fcgi .perl .ph .plx .pm .pod .psgi .t

Perl6

perl6
.6pl .6pm .nqp .p6 .p6l .p6m .pl .pl6 .pm .pm6 .t

Pic

pic
.pic .chem

Pickle

pickle
.pkl

PicoLisp

picolisp
.l

PigLatin

piglatin
.pig

Pike

pike
.pike .pmod

Pod

pod
.pod

PogoScript

pogoscript
.pogo

Pony

pony
.pony

PostScript

postscript, postscr
.ps .eps

PowerBuilder

powerbuilder
.pbt .sra .sru .srw

PowerShell

powershell, posh
.ps1 .psd1 .psm1

Processing

processing
.pde

Prolog

prolog
.pl .pro .prolog .yap

Propeller Spin

propellerspin
.spin

Protocol Buffer

protocolbuffer, protobuf, Protocol Buffers
.proto

Public Key

publickey
.asc .pub

Pug

pug
.jade .pug

Puppet

puppet
.pp

Pure Data

puredata
.pd

PureBasic

purebasic
.pb .pbi

PureScript

purescript
.purs

Python

python, rusthon
.py .bzl .cgi .fcgi .gyp .gypi .lmi .py3 .pyde .pyp .pyt .pyw .rpy .spec .tac .wsgi .xpy

Python console

pythonconsole, pycon

Python traceback

pythontraceback
.pytb

QML

qml
.qml .qbs

QMake

qmake
.pro .pri

R

r, R, Rscript, splus
.r .rd .rsx

RAML

raml
.raml

RDoc

rdoc
.rdoc

REALbasic

realbasic
.rbbas .rbfrm .rbmnu .rbres .rbtbar .rbuistate

REXX

rexx, arexx
.rexx .pprx .rex

RHTML

rhtml, html+ruby
.rhtml

RMarkdown

rmarkdown
.rmd

RPM Spec

rpmspec, specfile
.spec

RUNOFF

runoff
.rnh .rno

Racket

racket
.rkt .rktd .rktl .scrbl

Ragel

ragel, ragel-rb, ragel-ruby
.rl

Rascal

rascal
.rsc

Raw token data

rawtokendata, raw
.raw

Reason

reason
.re .rei

Rebol

rebol
.reb .r .r2 .r3 .rebol

Red

red, red/system
.red .reds

Redcode

redcode
.cw

Ren'Py

renpy, renpy
.rpy

RenderScript

renderscript
.rs .rsh

RobotFramework

robotframework
.robot

Roff

roff, nroff
.man .1 .1in .1m .1x .2 .3 .3in .3m .3qt .3x .4 .5 .6 .7 .8 .9 .l .me .ms .n .rno .roff .tmac

Rouge

rouge
.rg

Ruby

ruby, jruby, macruby, rake, rb, rbx
.rb .builder .fcgi .gemspec .god .irbrc .jbuilder .mspec .pluginspec .podspec .rabl .rake .rbuild .rbw .rbx .ru .ruby .spec .thor .watchr

Rust

rust
.rs .rs.in

SAS

sas
.sas

SCSS

scss
.scss

SMT

smt
.smt2 .smt

SPARQL

sparql
.sparql .rq

SQF

sqf
.sqf .hqf

SQL

sql
.sql .cql .ddl .inc .mysql .prc .tab .udf .viw

SQLPL

sqlpl
.sql .db2

SRecode Template

srecodetemplate
.srt

STON

ston
.ston

SVG

svg
.svg

Sage

sage
.sage .sagews

SaltStack

saltstack, saltstate, salt
.sls

Sass

sass
.sass

Scala

scala
.scala .sbt .sc

Scaml

scaml
.scaml

Scheme

scheme
.scm .sld .sls .sps .ss

Scilab

scilab
.sci .sce .tst

Self

self
.self

Shell

shell, sh, shell-script, bash, zsh
.sh .bash .bats .cgi .command .fcgi .ksh .sh.in .tmux .tool .zsh

ShellSession

shellsession, bash session, console
.sh-session

Shen

shen
.shen

Slash

slash
.sl

Slim

slim
.slim

Smali

smali
.smali

Smalltalk

smalltalk, squeak
.st .cs

Smarty

smarty
.tpl

SourcePawn

sourcepawn, sourcemod
.sp .inc .sma

Spline Font Database

splinefontdatabase
.sfd

Squirrel

squirrel
.nut

Stan

stan
.stan

Standard ML

standardml, sml
.ML .fun .sig .sml

Stata

stata
.do .ado .doh .ihlp .mata .matah .sthlp

Stylus

stylus
.styl

SubRip Text

subriptext
.srt

Sublime Text Config

sublimetextconfig
.sublime-build .sublime-commands .sublime-completions .sublime-keymap .sublime-macro .sublime-menu .sublime-mousemap .sublime-project .sublime-settings .sublime-theme .sublime-workspace .sublime_metrics .sublime_session

SuperCollider

supercollider
.sc .scd

Swift

swift
.swift

SystemVerilog

systemverilog
.sv .svh .vh

TI Program

tiprogram
.8xp .8xk .8xk.txt .8xp.txt

TLA

tla
.tla

TOML

toml
.toml

TXL

txl
.txl

Tcl

tcl
.tcl .adp .tm

Tcsh

tcsh
.tcsh .csh

TeX

tex, latex
.tex .aux .bbx .bib .cbx .cls .dtx .ins .lbx .ltx .mkii .mkiv .mkvi .sty .toc

Tea

tea
.tea

Terra

terra
.t

Text

text, fundamental
.txt .fr .nb .ncl .no

Textile

textile
.textile

Thrift

thrift
.thrift

Turing

turing
.t .tu

Turtle

turtle
.ttl

Twig

twig
.twig

TypeScript

typescript, ts
.ts .tsx

Unified Parallel C

unifiedparallelc
.upc

Unity3D Asset

unity3dasset
.anim .asset .mat .meta .prefab .unity

Unix Assembly

unixassembly
.s .ms

Uno

uno
.uno

UnrealScript

unrealscript
.uc

UrWeb

urweb, Ur/Web, Ur
.ur .urs

VCL

vcl
.vcl

VHDL

vhdl
.vhdl .vhd .vhf .vhi .vho .vhs .vht .vhw

Vala

vala
.vala .vapi

Verilog

verilog
.v .veo

Vim script

vimscript, vim, viml, nvim
.vim

Visual Basic

visualbasic, vb.net, vbnet
.vb .bas .cls .frm .frx .vba .vbhtml .vbs

Volt

volt
.volt

Vue

vue
.vue

Wavefront Material

wavefrontmaterial
.mtl

Wavefront Object

wavefrontobject
.obj

Web Ontology Language

webontologylanguage
.owl

WebIDL

webidl
.webidl

World of Warcraft Addon Data

worldofwarcraftaddondata
.toc

X10

x10, xten
.x10

XC

xc
.xc

XCompose

xcompose

XML

xml, rss, xsd, wsdl
.xml .ant .axml .builds .ccxml .clixml .cproject .csl .csproj .ct .dita .ditamap .ditaval .dll.config .dotsettings .filters .fsproj .fxml .glade .gml .grxml .iml .ivy .jelly .jsproj .kml .launch .mdpolicy .mm .mod .mxml .nproj .nuspec .odd .osm .pkgproj .plist .pluginspec .props .ps1xml .psc1 .pt .rdf .resx .rss .sch .scxml .sfproj .srdf .storyboard .stTheme .sublime-snippet .targets .tmCommand .tml .tmLanguage .tmPreferences .tmSnippet .tmTheme .ts .tsx .ui .urdf .ux .vbproj .vcxproj .vssettings .vxml .wsdl .wsf .wxi .wxl .wxs .x3d .xacro .xaml .xib .xlf .xliff .xmi .xml.dist .xproj .xsd .xul .zcml

XPages

xpages
.xsp-config .xsp.metadata

XProc

xproc
.xpl .xproc

XQuery

xquery
.xquery .xq .xql .xqm .xqy

XS

xs
.xs

XSLT

xslt, xsl
.xslt .xsl

Xojo

xojo
.xojo_code .xojo_menu .xojo_report .xojo_script .xojo_toolbar .xojo_window

Xtend

xtend
.xtend

YAML

yaml, yml
.yml .reek .rviz .sublime-syntax .syntax .yaml .yaml-tmlanguage .yml.mysql

YANG

yang
.yang

Yacc

yacc
.y .yacc .yy

Zephir

zephir
.zep

Zimpl

zimpl
.zimpl .zmpl .zpl

desktop

desktop
.desktop .desktop.in

eC

ec
.ec .eh

edn

edn
.edn

fish

fish
.fish

mupad

mupad
.mu

nesC

nesc
.nc

ooc

ooc
.ooc

reStructuredText

restructuredtext, rst
.rst .rest .rest.txt .rst.txt

wisp

wisp
.wisp

xBase

xbase, advpl, clipper, foxpro
.prg .ch .prw