Supported Languages


The table below shows the full list of languages (and corresponding classes/aliases) supported by Highlight.js. Languages that list a Package below are 3rd party languages and are not bundled with the core library. You can find their repositories by following the links.

Note: The languages available will depend on how you’ve built or are included the library in your app. For example our default minified web build includes only ~40 popular languages. See Getting the Library and Importing the Library in the README for examples of how to load additional/specific languages.
LanguageAliasesPackage
1C1c
4D4dhighlightjs-4d
ABAPsap-abap, abaphighlight-sap-abap
ABNFabnf
Access logsaccesslog
Adaada
Arduino (C++ w/Arduino libs)arduino, ino
ARM assemblerarmasm, arm
AVR assembleravrasm
ActionScriptactionscript, as
Alan IFalan, ihighlightjs-alan
Alanlnhighlightjs-alan
AngelScriptangelscript, asc
Apacheapache, apacheconf
AppleScriptapplescript, osascript
Arcadearcade
AsciiDocasciidoc, adoc
AspectJaspectj
AutoHotkeyautohotkey
AutoItautoit
Awkawk, mawk, nawk, gawk
Bashbash, sh, zsh
Basicbasic
BBCodebbcodehighlightjs-bbcode
Blade (Laravel)bladehighlightjs-blade
BNFbnf
Brainfuckbrainfuck, bf
C#csharp, cs
Cc, h
C++cpp, hpp, cc, hh, c++, h++, cxx, hxx
C/ALcal
Cache Object Scriptcos, cls
CMakecmake, cmake.in
Coqcoq
CSPcsp
CSScss
Cap’n Protocapnproto, capnp
Chaoschaos, kaoshighlightjs-chaos
Chapelchapel, chplhighlightjs-chapel
Cisco CLIciscohighlightjs-cisco-cli
clojure, clj
CoffeeScriptcoffeescript, coffee, cson, iced
CpcdosC+cpchighlightjs-cpcdos
crmsh, crm, pcmk
Crystalcrystal, cr
cURLcurlhighlightjs-curl
Cypher (Neo4j)cypherhighlightjs-cypher
Dd
Dafnydafnyhighlightjs-dafny
Dartdart
Delphidpr, dfm, pas, pascal
Diffdiff, patch
Djangodjango, jinja
DNS Zone filedns, zone, bind
Dockerfiledockerfile, docker
DOSdos, bat, cmd
dsconfigdsconfig
DTS (Device Tree)dts
Dustdust, dst
Dylandylanhighlightjs-dylan
ebnf
Elixirelixir
Elmelm
Erlangerlang, erl
Excelexcel, xls, xlsx
Extemporeextempore, xtlang, xtmhighlightjs-xtlang
F#fsharp, fs
FIXfix
Fortranfortran, f90, f95
G-Codegcode, nc
Gamsgams, gms
GAUSSgauss, gss
GDScriptgodot, gdscripthighlightjs-gdscript
Glimmer and EmberJShbs, glimmer, html.hbs, html.handlebars, htmlbarshighlightjs-glimmer
gn, gnihighlightjs-GN
Gogo, golang
Grammatical Frameworkgfhighlightjs-gf
Gologolo, gololang
Gradlegradle
GraphQLgraphql
Groovygroovy
GSQLgsqlhighlightjs-gsql
HTML, XMLxml, html, xhtml, rss, atom, xjb, xsd, xsl, plist, svg
HTTPhttp, https
Hamlhaml
Handlebarshandlebars, hbs, html.hbs, html.handlebars
Haskellhaskell, hs
Haxehaxe, hx
High-level shader languagehlslhighlightjs-hlsl
Hyhy, hylang
Ini, TOMLini, toml
Inform7inform7, i7
IRPF90irpf90
JSONjson
Javajava, jsp
JavaScriptjavascript, js, jsx
Joliejolie, iol, olhighlightjs-jolie
Juliajulia, julia-repl
Kotlinkotlin, kt
LaTeXtex
Leafleaf
Leanleanhighlightjs-lean
Lassolasso, ls, lassoscript
Lessless
LDIFldif
Lisplisp
LiveCode Serverlivecodeserver
LiveScriptlivescript, ls
Lualua
Macaulay2macaulay2highlightjs-macaulay2
Makefilemakefile, mk, mak, make
Markdownmarkdown, md, mkdown, mkd
Mathematicamathematica, mma, wl
Matlabmatlab
Maximamaxima
Maya Embedded Languagemel
Mercurymercury
mIRC Scripting Languagemirc, mrchighlightjs-mirc
Mizarmizar
MKBmkbhighlightjs-mkb
Mojoliciousmojolicious
Monkeymonkey
Moonscriptmoonscript, moon
N1QLn1ql
NSISnsis
Neverneverhighlightjs-never
Nginxnginx, nginxconf
Nimnim, nimrod
Nixnix
Object Constraint Languageoclhighlightjs-ocl
OCamlocaml, ml
Objective Cobjectivec, mm, objc, obj-c, obj-c++, objective-c++
OpenGL Shading Languageglsl
OpenSCADopenscad, scad
Oracle Rules Languageruleslanguage
Oxygeneoxygene
PFpf, pf.conf
PHPphp
Papyruspapyrus, pschighlightjs-papyrus
Parser3parser3
Perlperl, pl, pm
Pine Scriptpine, pinescripthighlightjs-pine
Plaintextplaintext, txt, text
Ponypony
PostgreSQL & PL/pgSQLpgsql, postgres, postgresql
PowerShellpowershell, ps, ps1
Processingprocessing
Prologprolog
Propertiesproperties
Protocol Buffersprotobuf
Puppetpuppet, pp
Pythonpython, py, gyp
Python profiler resultsprofile
Python REPLpython-repl, pycon
Q#qsharphighlightjs-qsharp
Qk, kdb
QMLqml
Rr
Razor CSHTMLcshtml, razor, razor-cshtmlhighlightjs-cshtml-razor
ReasonMLreasonml, re
Rebol & Redredbol, rebol, red, red-systemhighlightjs-redbol
RenderMan RIBrib
RenderMan RSLrsl
RiScriptrisc, riscripthighlightjs-riscript
Roboconfgraph, instances
Robot Frameworkrobot, rfhighlightjs-robot
RPM spec filesrpm-specfile, rpm, spec, rpm-spec, specfilehighlightjs-rpm-specfile
Rubyruby, rb, gemspec, podspec, thor, irb
Rustrust, rs
SASSAS, sas
SCSSscss
SQLsql
STEP Part 21p21, step, stp
Scalascala
Schemescheme
Scilabscilab, sci
Shape Expressionsshexchighlightjs-shexc
Shellshell, console
Smalismali
Smalltalksmalltalk, st
SMLsml, ml
Soliditysolidity, solhighlightjs-solidity
Splunk SPLsplhighlightjs-spl
Stanstan, stanfuncs
Statastata
Structured Textiecst, scl, stl, structured-texthighlightjs-structured-text
Stylusstylus, styl
SubUnitsubunit
Supercollidersupercollider, schighlightjs-supercollider
Sveltesveltehighlightjs-svelte
Swiftswift
Tcltcl, tk
Terraform (HCL)terraform, tf, hclhighlightjs-terraform
Test Anything Protocoltap
Thriftthrift
TPtp
Transact-SQLtsqlhighlightjs-tsql
Twigtwig, craftcms
TypeScripttypescript, ts
Unicorn Rails logunicorn-rails-loghighlightjs-unicorn-rails-log
VB.Netvbnet, vb
VBAvbahighlightjs-vba
VBScriptvbscript, vbs
VHDLvhdl
Valavala
Verilogverilog, v
Vim Scriptvim
X#xsharp, xs, prghighlightjs-xsharp
X++axapta, x++
x86 Assemblyx86asm
XLxl, tao
XQueryxquery, xpath, xq
YAMLyml, yaml
ZenScriptzenscript, zshighlightjs-zenscript
Zephirzephir, zep

Alias Overlap

If you are using either of these languages at the same time please be sure to use the full name and not the alias to avoid any ambiguity.

LanguageOverlap
SMLml
OCamlml
Lassols
LiveScriptls