Back to Highlight Js

Supported Languages

docs/supported-languages.md

11.11.123.7 KB
Original Source

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.

<!-- LANGLIST -->
LanguageAliasesPackage
1C1c
4D4dhighlightjs-4d
ABAPsap-abap, abaphighlight-sap-abap
Abc Notationabchighlightjs-abc
ABNFabnf
Access logsaccesslog
ActionScriptactionscript, as
Adaada
Aikenaiken, akhighlightjs-aiken
Alanlnhighlightjs-alan
Alan IFalan, ihighlightjs-alan
AngelScriptangelscript, asc
Apacheapache, apacheconf
Apexapexhighlightjs-apex
AppleScriptapplescript, osascript
Arcadearcade
Arduino (C++ w/Arduino libs)arduino, ino
ARM assemblerarmasm, arm
AsciiDocasciidoc, adoc
AspectJaspectj
AutoHotkeyautohotkey
AutoItautoit
AVR assembleravrasm
Awkawk, mawk, nawk, gawk
Ballerinaballerina, balhighlightjs-ballerina
Bashbash, sh, zsh
BASICbasic
BBCodebbcodehighlightjs-bbcode
Bicepbicephighlightjs-bicep
Blade (Laravel)bladehighlightjs-blade
BNFbnf
BQNbqnhighlightjs-bqn
Brainfuckbrainfuck, bf
Cc, h
C#csharp, cs
C++cpp, hpp, cc, hh, c++, h++, cxx, hxx
C/ALcal
C3c3highlightjs-c3
Cache Object Scriptcos, cls
Candidcandid, didhighlightjs-motoko
Cap’n Protocapnproto, capnp
Chaoschaos, kaoshighlightjs-chaos
Chapelchapel, chplhighlightjs-chapel
Cisco CLIciscohighlightjs-cisco-cli
Clojureclojure, clj
CMakecmake, cmake.in
COBOLcobol, standard-cobolhighlightjs-cobol
CODEOWNERScodeownershighlightjs-codeowners
CoffeeScriptcoffeescript, coffee, cson, iced
Coqcoq
CpcdosC+cpchighlightjs-cpcdos
Crmshcrmsh, crm, pcmk
Crystalcrystal, cr
CSPcsp
CSScss
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
EBNFebnf
Elixirelixir
Elmelm
Erlangerlang, erl
Excelexcel, xls, xlsx
Extemporeextempore, xtlang, xtmhighlightjs-xtlang
F#fsharp, fs, fsx, fsi, fsscript
FIXfix
Flixflixhighlightjs-flix
Fortranfortran, f90, f95
FunCfunchighlightjs-func
G-Codegcode, nc
Gamsgams, gms
GAUSSgauss, gss
GDScriptgodot, gdscripthighlightjs-gdscript
Gherkingherkin
Gleamgleamgleam-highlight.js
Glimmer and EmberJShbs, glimmer, html.hbs, html.handlebars, htmlbarshighlightjs-glimmer
GN for Ninjagn, gnihighlightjs-GN
Gogo, golang
Gologolo, gololang
Gradlegradle
Grammatical Frameworkgfhighlightjs-gf
GraphQLgraphql, gql
Groovygroovy
GSQLgsqlhighlightjs-gsql
Hamlhaml
Handlebarshandlebars, hbs, html.hbs, html.handlebars
Haskellhaskell, hs
Haxehaxe, hx
High-level shader languagehlslhighlightjs-hlsl
HTML, XMLxml, html, xhtml, rss, atom, xjb, xsd, xsl, plist, svg
HTTPhttp, https
Hyhy, hylang
Inform7inform7, i7
Ini, TOMLini, toml
Iptablesiptableshighlightjs-iptables
IRPF90irpf90
Javajava, jsp
JavaScriptjavascript, js, jsx
Joliejolie, iol, olhighlightjs-jolie
JSONjson, jsonc, json5
JSONatajsonatahighlightjs-jsonata
Juliajulia, jl
Julia REPLjulia-repl
Kotlinkotlin, kt
L4l4, legalhighlightjs-l4
Langhighlightjs-lang
Lassolasso, ls, lassoscript
LaTeXtex
LDIFldif
Leafleaf
Leanleanhighlightjs-lean
Lessless
Liquidliquidhighlightjs-liquid
Lisplisp
LiveCode Serverlivecodeserver
LiveScriptlivescript, ls
LookMLlookmlhighlightjs-lookml
Lualua, pluto
Luauluauhighlightjs-luau
Macaulay2macaulay2highlightjs-macaulay2
Magikmagikhighlightjs-magik
Makefilemakefile, mk, mak, make
Markdownmarkdown, md, mkdown, mkd
Mathematicamathematica, mma, wl
Matlabmatlab
Maximamaxima
Maya Embedded Languagemel
Mercurymercury
MetaPostmetaposthighlightjs-metapost
Mintminthighlightjs-mint
MIPS Assemblermips, mipsasm
mIRC Scripting Languagemirc, mrchighlightjs-mirc
Mirthmirthhighlightjs-mirth
Mizarmizar
MKBmkbhighlightjs-mkb
MLIRmlirhighlightjs-mlir
Mojoliciousmojolicious
Monkeymonkey
Moonscriptmoonscript, moon
Motokomotoko, mohighlightjs-motoko
N1QLn1ql
Neverneverhighlightjs-never
Nginxnginx, nginxconf
Nimnim, nimrod
Nixnix
NSISnsis
Oakoakhighlightjs-oak
Object Constraint Languageoclhighlightjs-ocl
Objective Cobjectivec, mm, objc, obj-c, obj-c++, objective-c++
OCamlocaml, ml
Odinodinhighlightjs-odinlang
OpenGL Shading Languageglsl
OpenSCADopenscad, scad
Oracle Rules Languageruleslanguage
Oxygeneoxygene
Papyruspapyrus, pschighlightjs-papyrus
Parser3parser3
Perlperl, pl, pm
PFpf, pf.conf
Phixphixhighlightjs-phix
PHPphp
Pine Scriptpine, pinescripthighlightjs-pine
Plaintextplaintext, txt, text
Ponypony
PostgreSQL & PL/pgSQLpgsql, postgres, postgresql
PowerOnpoweron, pohighlightjs-poweron
PowerShellpowershell, ps, ps1
Prismaprismahighlightjs-prisma
Processingprocessing
Prologprolog
Propertiesproperties
Protocol Buffersproto, protobuf
Puppetpuppet, pp
Pythonpython, py, gyp
Python profiler resultsprofile
Python REPLpython-repl, pycon
Qk, kdb
Q#qsharphighlightjs-qsharp
QMLqml
Rr
Rakuraku, perl6, p6, pm6, rakumodhighlightjs-raku
RakuDocpod6, rakudochighlightjs-raku
RakuQuotingrakuquotinghighlightjs-raku
RakuRegexerakuregexehighlightjs-raku
Razor CSHTMLcshtml, razor, razor-cshtmlhighlightjs-cshtml-razor
ReasonMLreasonml, re
Rebol & Redredbol, rebol, red, red-systemhighlightjs-redbol
RenderMan RIBrib
RenderMan RSLrsl
ReScriptrescript, reshighlightjs-rescript
RISC-V Assemblyriscv, riscvasmhighlightjs-riscvasm
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
RVT Scriptrvt, rvt-scripthighlightjs-rvt-script
SASSAS, sas
Scalascala
Schemescheme
Scilabscilab, sci
SCSSscss
SFZsfzhighlightjs-sfz
Shape Expressionsshexchighlightjs-shexc
Shellshell, console
Smalismali
Smalltalksmalltalk, st
SMLsml, ml
Soliditysolidity, solhighlightjs-solidity
Splunk SPLsplhighlightjs-spl
SQLsql
Stanstan, stanfuncs
Statastata
STEP Part 21p21, step, stp
Structured Textiecst, scl, stl, structured-texthighlightjs-structured-text
Stylusstylus, styl
SubUnitsubunit
Supercollidersupercollider, schighlightjs-supercollider
Sveltesveltehighlight.svelte
Swiftswift
Tcltcl, tk
Terraform (HCL)terraform, tf, hclhighlightjs-terraform
Test Anything Protocoltap
Thriftthrift
Toittoittoit-highlight
TPtp
Transact-SQLtsqlhighlightjs-tsql
TTCN-3ttcn, ttcnpp, ttcn3highlightjs-ttcn3
Twigtwig, craftcms
TypeScripttypescript, ts, tsx, mts, cts
Unicorn Rails logunicorn-rails-loghighlightjs-unicorn-rails-log
Unisonunison, uhighlightjs-unison
Valavala
VB.Netvbnet, vb
VBAvbahighlightjs-vba
VBScriptvbscript, vbs
Verilogverilog, v
VHDLvhdl
Vim Scriptvim
VoltScriptvoltscript, vss, lotusscript, lsshighlightjs-voltscript
WGSLwgslhighlightjs-wgsl
X#xsharp, xs, prghighlightjs-xsharp
X++axapta, x++
x86 Assemblyx86asm
x86 Assembly (AT&T)x86asmatthighlightjs-x86asmatt
XLxl, tao
XQueryxquery, xpath, xq, xqm
YAMLyml, yaml
ZenScriptzenscript, zshighlightjs-zenscript
Zephirzephir, zep
Zigzighighlightjs-zig
<!-- LANGLIST_END --> <!-- document it until we can fix it -->

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
Lassols
LiveScriptls
OCamlml
SMLml