The table below shows the full list of supported languages (and corresponding classes/aliases). Note: Which languages are available may depend on how you've built or included the library in your app. See Getting the Library in the README.
Languages that listed a Package below are 3rd party languages and are not bundled with the core library. You can find their repositories by following the links.
Language | Classes | Package |
---|---|---|
1C | 1c | |
4D | 4d | highlightjs-4d |
ABNF | abnf | |
Access logs | accesslog | |
Ada | ada | |
Arduino (C++ w/Arduino libs) | arduino ino | |
ARM assembler | armasm, arm | |
AVR assembler | avrasm | |
ActionScript | actionscript, as | |
Alan | alan, i | highlightjs-alan |
AngelScript | angelscript, asc | |
Apache | apache, apacheconf | |
AppleScript | applescript, osascript | |
Arcade | arcade | |
AsciiDoc | asciidoc, adoc | |
AspectJ | aspectj | |
AutoHotkey | autohotkey | |
AutoIt | autoit | |
Awk | awk, mawk, nawk, gawk | |
Axapta | axapta | |
Bash | bash, sh, zsh | |
Basic | basic | |
BNF | bnf | |
Brainfuck | brainfuck, bf | |
C# | csharp, cs | |
C | c, h | |
C++ | cpp, hpp, cc, hh, c++, h++, cxx, hxx | |
C/AL | cal | |
Cache Object Script | cos, cls | |
CMake | cmake, cmake.in | |
Coq | coq | |
CSP | csp | |
CSS | css | |
Cap’n Proto | capnproto, capnp | |
Chaos | chaos, kaos | highlightjs-chaos |
Cisco CLI | cisco | highlightjs-cisco-cli |
Clojure | clojure, clj | |
CoffeeScript | coffeescript, coffee, cson, iced | |
CpcdosC+ | cpc | highlightjs-cpcdos |
Crmsh | crmsh, crm, pcmk | |
Crystal | crystal, cr | |
Cypher (Neo4j) | cypher | highlightjs-cypher |
D | d | |
DNS Zone file | dns, zone, bind | |
DOS | dos, bat, cmd | |
Dart | dart | |
Delphi | delphi, dpr, dfm, pas, pascal, freepascal, lazarus, lpr, lfm | |
Diff | diff, patch | |
Django | django, jinja | |
Dockerfile | dockerfile, docker | |
dsconfig | dsconfig | |
DTS (Device Tree) | dts | |
Dust | dust, dst | |
Dylan | dylan | highlight-dylan |
EBNF | ebnf | |
Elixir | elixir | |
Elm | elm | |
Erlang | erlang, erl | |
Excel | excel, xls, xlsx | |
Extempore | extempore, xtlang, xtm | highlightjs-xtlang |
F# | fsharp, fs | |
FIX | fix | |
Fortran | fortran, f90, f95 | |
G-Code | gcode, nc | |
Gams | gams, gms | |
GAUSS | gauss, gss | |
GDScript | godot, gdscript | highlightjs-gdscript |
Gherkin | gherkin | |
GN for Ninja | gn, gni | highlightjs-GN |
Go | go, golang | |
Grammatical Framework | gf | highlightjs-gf |
Golo | golo, gololang | |
Gradle | gradle | |
Groovy | groovy | |
HTML, XML | xml, html, xhtml, rss, atom, xjb, xsd, xsl, plist, svg | |
HTTP | http, https | |
Haml | haml | |
Handlebars | handlebars, hbs, html.hbs, html.handlebars | |
Haskell | haskell, hs | |
Haxe | haxe, hx | |
Hy | hy, hylang | |
Ini, TOML | ini, toml | |
Inform7 | inform7, i7 | |
IRPF90 | irpf90 | |
JSON | json | |
Java | java, jsp | |
JavaScript | javascript, js, jsx | |
Jolie | jolie, iol, ol | highlightjs-jolie |
Kotlin | kotlin, kt | |
LaTeX | tex | |
Leaf | leaf | |
Lean | lean | highlightjs-lean |
Lasso | lasso, ls, lassoscript | |
Less | less | |
LDIF | ldif | |
Lisp | lisp | |
LiveCode Server | livecodeserver | |
LiveScript | livescript, ls | |
Lua | lua | |
Makefile | makefile, mk, mak | |
Markdown | markdown, md, mkdown, mkd | |
Mathematica | mathematica, mma, wl | |
Matlab | matlab | |
Maxima | maxima | |
Maya Embedded Language | mel | |
Mercury | mercury | |
mIRC Scripting Language | mirc, mrc | highlightjs-mirc |
Mizar | mizar | |
Mojolicious | mojolicious | |
Monkey | monkey | |
Moonscript | moonscript, moon | |
N1QL | n1ql | |
NSIS | nsis | |
Never | never | highlightjs-never |
Nginx | nginx, nginxconf | |
Nim | nimrod | |
Nix | nix | |
Object Constraint Language | ocl | highlightjs-ocl |
OCaml | ocaml, ml | |
Objective C | objectivec, mm, objc, obj-c | |
OpenGL Shading Language | glsl | |
OpenSCAD | openscad, scad | |
Oracle Rules Language | ruleslanguage | |
Oxygene | oxygene | |
PF | pf, pf.conf | |
PHP | php, php3, php4, php5, php6, php7 | |
Parser3 | parser3 | |
Perl | perl, pl, pm | |
Plaintext | plaintext, txt, text | |
Pony | pony | |
PostgreSQL & PL/pgSQL | pgsql, postgres, postgresql | |
PowerShell | powershell, ps, ps1 | |
Processing | processing | |
Prolog | prolog | |
Properties | properties | |
Protocol Buffers | protobuf | |
Puppet | puppet, pp | |
Python | python, py, gyp | |
Python profiler results | profile | |
Python REPL | python-repl, pycon | |
Q | k, kdb | |
QML | qml | |
R | r | |
Razor CSHTML | cshtml, razor, razor-cshtml | highlightjs-cshtml-razor |
ReasonML | reasonml, re | |
RenderMan RIB | rib | |
RenderMan RSL | rsl | |
Roboconf | graph, instances | |
Robot Framework | robot, rf | highlightjs-robot |
RPM spec files | rpm-specfile, rpm, spec, rpm-spec, specfile | highlightjs-rpm-specfile |
Ruby | ruby, rb, gemspec, podspec, thor, irb | |
Rust | rust, rs | |
SAS | SAS, sas | |
SCSS | scss | |
SQL | sql | |
STEP Part 21 | p21, step, stp | |
Scala | scala | |
Scheme | scheme | |
Scilab | scilab, sci | |
Shape Expressions | shexc | highlightjs-shexc |
Shell | shell, console | |
Smali | smali | |
Smalltalk | smalltalk, st | |
SML | sml, ml | |
Solidity | solidity, sol | highlightjs-solidity |
Stan | stan, stanfuncs | |
Stata | stata | |
Structured Text | iecst, scl, stl, structured-text | highlightjs-structured-text |
Stylus | stylus, styl | |
SubUnit | subunit | |
Supercollider | supercollider, sc | highlightjs-supercollider |
Svelte | svelte | highlightjs-svelte |
Swift | swift | |
Tcl | tcl, tk | |
Terraform (HCL) | terraform, tf, hcl | highlightjs-terraform |
Test Anything Protocol | tap | |
Thrift | thrift | |
TP | tp | |
Transact-SQL | tsql | highlightjs-tsql |
Twig | twig, craftcms | |
TypeScript | typescript, ts | |
Unicorn Rails log | unicorn-rails-log | highlightjs-unicorn-rails-log |
VB.Net | vbnet, vb | |
VBA | vba | highlightjs-vba |
VBScript | vbscript, vbs | |
VHDL | vhdl | |
Vala | vala | |
Verilog | verilog, v | |
Vim Script | vim | |
x86 Assembly | x86asm | |
XL | xl, tao | |
XQuery | xquery, xpath, xq | |
YAML | yml, yaml | |
Zephir | zephir, zep |
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.
Language | Overlap |
---|---|
SML | ml |
OCaml | ml |
Lasso | ls |
LiveScript | ls |