Skip to content

Latest commit

 

History

History
333 lines (324 loc) · 27.4 KB

File metadata and controls

333 lines (324 loc) · 27.4 KB

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.

Language Aliases Package
1C 1c
4D 4d highlightjs-4d
ABAP sap-abap, abap highlight-sap-abap
Abc Notation abc highlightjs-abc
ABNF abnf
Access logs accesslog
ActionScript actionscript, as
Ada ada
Aiken aiken, ak highlightjs-aiken
Alan ln highlightjs-alan
Alan IF alan, i highlightjs-alan
AngelScript angelscript, asc
Apache apache, apacheconf
Apex apex highlightjs-apex
AppleScript applescript, osascript
Arcade arcade
Arduino (C++ w/Arduino libs) arduino, ino
ARM assembler armasm, arm
AsciiDoc asciidoc, adoc
AspectJ aspectj
Astro astro, astrojs highlightjs-astro
AutoHotkey autohotkey, ahk
AutoIt autoit
AVR assembler avrasm
Awk awk
Ballerina ballerina, bal highlightjs-ballerina
Bash bash, sh, zsh
BASIC basic
BBCode bbcode highlightjs-bbcode
Bicep bicep highlightjs-bicep
Blade (Laravel) blade highlightjs-blade
BNF bnf
BQN bqn highlightjs-bqn
Brainfuck brainfuck, bf
C c, h
C# csharp, cs, c#
C++ cpp, hpp, cc, hh, c++, h++, cxx, hxx
C/AL cal
C3 c3 highlightjs-c3
Cache Object Script cos, cls
Candid candid, did highlightjs-motoko
Cap’n Proto capnproto, capnp
Cedar cedar, cedarschema highlightjs-cedar
Ceylon ceylon
Chaos chaos, kaos highlightjs-chaos
Chapel chapel, chpl highlightjs-chapel
Cisco CLI cisco highlightjs-cisco-cli
Clean clean, icl, dcl
Clojure clojure, clj, edn
Clojure REPL clojure-repl
CMake cmake, cmake.in
COBOL cobol, standard-cobol highlightjs-cobol
CODEOWNERS codeowners highlightjs-codeowners
CoffeeScript coffeescript, coffee, cson, iced
Coq coq
CpcdosC+ cpc highlightjs-cpcdos
Crmsh crmsh, crm, pcmk
Crystal crystal, cr
CSP csp
CSS css
cURL curl highlightjs-curl
Cypher (Neo4j) cypher highlightjs-cypher
D d
Dafny dafny highlightjs-dafny
Dart dart
DAX (Data Analysis Expressions) dax highlightjs-dax
Delphi delphi, dpr, dfm, pas, pascal
Diff diff, patch
Django django, jinja
DNS Zone file dns, zone, bind
Dockerfile dockerfile, docker
Djot djot, dj highlightjs-djot
DOS dos, bat, batch, cmd
dsconfig dsconfig
DTS (Device Tree) dts
Dust dust, dst
Dylan dylan highlightjs-dylan
EBNF ebnf
Elixir elixir, ex, exs
Elm elm
ERB erb
Erlang erlang, erl
Erlang REPL erlang-repl
ES|QL esql highlightjs-esql
Excel excel, xls, xlsx
Extempore extempore, xtlang, xtm highlightjs-xtlang
F# fsharp, fs, f#
FIX fix
Flix flix highlightjs-flix
Fortran fortran, f90, f95
FreeDesktop config freedesktop, desktop, systemd
FunC func highlightjs-func
G-Code gcode, nc
GameMaker Language gml
Gams gams, gms
GAUSS gauss, gss
GDScript godot, gdscript highlightjs-gdscript
Gherkin gherkin, feature
Gleam gleam gleam-highlight.js
Glimmer and EmberJS hbs, glimmer, html.hbs, html.handlebars, htmlbars highlightjs-glimmer
GN for Ninja gn, gni highlightjs-GN
Go go, golang
Golo golo
Gradle gradle
Grammatical Framework gf highlightjs-gf
GraphQL graphql, gql
Groovy groovy
GSQL gsql highlightjs-gsql
Haml haml
Handlebars handlebars, hbs, html.hbs, html.handlebars, htmlbars
Haskell haskell, hs
Haxe haxe, hx
High-level shader language hlsl highlightjs-hlsl
HSP hsp
HTML, XML xml, html, xhtml, rss, atom, xjb, xsd, xsl, plist, wsf, svg
HTTP http, https
Hy hy, hylang
Inform7 inform7, i7
Igor Pro igor, igorpro, ipf highlightjs-igor-pro
Ini, TOML ini, toml
Iptables iptables highlightjs-iptables
IRPF90 irpf90
ISBL isbl
Jaiva jaiva, jiv, jva highlightjs-jaiva
Java java, jsp
JavaScript javascript, js, jsx, mjs, cjs
JBoss CLI jboss-cli, wildfly-cli
Jolie jolie, iol, ol highlightjs-jolie
JSON json, jsonc, json5
JSONata jsonata highlightjs-jsonata
Julia julia
Julia REPL julia-repl, jldoctest
Kotlin kotlin, kt, kts, ktm, ktx
Kusto Query Language kql, kusto highlightjs-kql
L4 l4, legal highlightjs-l4
Lang highlightjs-lang
Lasso lasso, ls, lassoscript
LaTeX latex, tex
LDIF ldif
Leaf leaf
Lean lean highlightjs-lean
Less less
Liquid liquid highlightjs-liquid
Liquidsoap liq highlightjs-liquidsoap
Lisp lisp
LiveCode Server livecodeserver
LiveScript livescript, ls
LLVM IR llvm
LookML lookml highlightjs-lookml
LSL (Linden Scripting Language) lsl
Lua lua, pluto
Luau luau highlightjs-luau
M (Power Query) m, pq highlightjs-m
Macaulay2 macaulay2 highlightjs-macaulay2
Magik magik highlightjs-magik
Makefile makefile, mk, mak, make
Markdown markdown, md, mkdown, mkd
Mathematica mathematica, mma, wl
Matlab matlab
Maxima maxima
Maya Embedded Language mel
Mercury mercury, m, moo
MetaPost metapost highlightjs-metapost
MikroTik RouterOS script routeros, mikrotik
Mint mint highlightjs-mint
MIPS Assembler mips, mipsasm
mIRC Scripting Language mirc, mrc highlightjs-mirc
Mirth mirth highlightjs-mirth
Mizar mizar
MKB mkb highlightjs-mkb
MLIR mlir highlightjs-mlir
Mojolicious mojolicious
Monkey monkey
MoonBit moonbit, mbt highlightjs-moonbit
Moonscript moonscript, moon
Motoko motoko, mo highlightjs-motoko
N1QL n1ql
Nested Text nestedtext, nt
Never never highlightjs-never
Nginx nginx, nginxconf
Nim nim
Nix nix, nixos
Node REPL node-repl
NSIS nsis
Oak oak highlightjs-oak
Object Constraint Language ocl highlightjs-ocl
Objective C objectivec, mm, objc, obj-c, obj-c++, objective-c++
OCaml ocaml, ml
Odin odin, odinlang
OpenGL Shading Language glsl
OpenSCAD openscad, scad
Oracle Rules Language ruleslanguage
Oxygene oxygene
Papyrus papyrus, psc highlightjs-papyrus
Parser3 parser3
Perl perl, pl, pm
PF pf, pf.conf
Phix phix highlightjs-phix
PHP php
PHP template php-template
Pine Script pine, pinescript highlightjs-pine
Pkl pkl highlightjs-pkl
Plaintext plaintext, txt, text
Pony pony
PostgreSQL & PL/pgSQL pgsql, postgres, postgresql
PowerOn poweron, po highlightjs-poweron
PowerShell powershell, ps, ps1, pwsh
Prisma prisma highlightjs-prisma
Processing processing, pde
Prolog prolog
Properties properties
Protocol Buffers proto, protobuf
Puppet puppet, pp
PureBASIC purebasic, pb, pbi
Python python, py, gyp, ipython
Python profiler results profile
Python REPL python-repl, pycon
Q q, k, kdb
Q# qsharp highlightjs-qsharp
QML qml, qt
R r
Raku raku, perl6, p6, pm6, rakumod highlightjs-raku
RakuDoc pod6, rakudoc highlightjs-raku
RakuQuoting rakuquoting highlightjs-raku
RakuRegexe rakuregexe highlightjs-raku
RAScript rascript highlightjs-rascript
Razor CSHTML cshtml, razor, razor-cshtml highlightjs-cshtml-razor
ReasonML reasonml, re
Rebol & Red redbol, rebol, red, red-system highlightjs-redbol
RenderMan RIB rib
RenderMan RSL rsl
ReScript rescript, res highlightjs-rescript
RISC-V Assembly riscv, riscvasm highlightjs-riscvasm
RiScript risc, riscript highlightjs-riscript
Roboconf 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
RVT Script rvt, rvt-script highlightjs-rvt-script
SAS sas
Scala scala
Scheme scheme, scm
Scilab scilab, sci
SCSS scss
SFZ sfz highlightjs-sfz
Shape Expressions shexc highlightjs-shexc
Shell shell, console, shellsession
Smali smali
Smalltalk smalltalk, st
SML sml, ml
Solidity solidity, sol highlightjs-solidity
Splunk SPL spl highlightjs-spl
SQF sqf
SQL sql
Stan stan, stanfuncs
Stata stata, do, ado
STEP Part 21 step21, p21, step, stp
Structured Text iecst, scl, stl, structured-text highlightjs-structured-text
Stylus stylus, styl
SubUnit subunit
Supercollider supercollider, sc highlightjs-supercollider
Svelte svelte highlight.svelte
Swift swift
Tagger Script taggerscript
Tcl tcl, tk
Terraform (HCL) terraform, tf, hcl highlightjs-terraform
Test Anything Protocol tap
Thrift thrift
Toit toit toit-highlight
TP tp
Transact-SQL tsql highlightjs-tsql
TTCN-3 ttcn, ttcnpp, ttcn3 highlightjs-ttcn3
Twig twig, craftcms
TypeScript typescript, ts, tsx, mts, cts
Unicorn Rails log unicorn-rails-log highlightjs-unicorn-rails-log
Unison unison, u highlightjs-unison
Vala vala
VB.Net vbnet, vb
VBA vba highlightjs-vba
VBScript vbscript, vbs
VBScript in HTML vbscript-html
Verilog verilog, v, sv, svh
Verse verse highlightjs-verse
Veryl veryl highlightjs-veryl
VHDL vhdl
Vim Script vim
VoltScript voltscript, vss, lotusscript, lss highlightjs-voltscript
WebAssembly wasm
WGSL wgsl highlightjs-wgsl
Why3 whyml, mlw highlightjs-why3
Wren wren
X# xsharp, xs, prg highlightjs-xsharp
X++ axapta, x++
x86 Assembly x86asm
x86 Assembly (AT&T) x86asmatt highlightjs-x86asmatt
XL xl, tao
Xojo xojo highlightjs-xojo
XQuery xquery, xpath, xq, xqm
YAML yml, yaml
ZenScript zenscript, zs highlightjs-zenscript
Zephir zephir, zep
Zig zig highlightjs-zig

The following languages are included in the "common" subset:

Bash, C, C++, C#, CSS, Diff, Go, GraphQL, HTML (XML), Ini (TOML), Java, JavaScript, JSON, Kotlin, Less, Lua, Makefile, Markdown, Objective C, Perl, PHP, Plaintext, Python, Python REPL, R, Ruby, Rust, SCSS, Shell, SQL, Swift, TypeScript, VB.Net, WASM, YAML

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.

Language Overlap
Lasso ls
LiveScript ls
OCaml ml
SML ml