1 | # Supported Languages
|
2 |
|
3 | 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.
|
4 |
|
5 | **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][1] and [Importing the Library][2] in the README for examples of how to load additional/specific languages.
|
6 |
|
7 |
|
8 | | Language | Aliases | Package |
|
9 | | :-----------------------| :--------------------- | :------ |
|
10 | | 1C | 1c | |
|
11 | | 4D | 4d |[highlightjs-4d](https://github.com/highlightjs/highlightjs-4d) |
|
12 | | ABAP | sap-abap, abap |[highlight-sap-abap](https://github.com/highlightjs/highlightjs-sap-abap) |
|
13 | | ABNF | abnf | |
|
14 | | Access logs | accesslog | |
|
15 | | Ada | ada | |
|
16 | | Arduino (C++ w/Arduino libs) | arduino, ino | |
|
17 | | ARM assembler | armasm, arm | |
|
18 | | AVR assembler | avrasm | |
|
19 | | ActionScript | actionscript, as | |
|
20 | | Alan IF | alan, i | [highlightjs-alan](https://github.com/highlightjs/highlightjs-alan) |
|
21 | | Alan | ln | [highlightjs-alan](https://github.com/alantech/highlightjs-alan) |
|
22 | | AngelScript | angelscript, asc | |
|
23 | | Apache | apache, apacheconf | |
|
24 | | AppleScript | applescript, osascript | |
|
25 | | Arcade | arcade | |
|
26 | | AsciiDoc | asciidoc, adoc | |
|
27 | | AspectJ | aspectj | |
|
28 | | AutoHotkey | autohotkey | |
|
29 | | AutoIt | autoit | |
|
30 | | Awk | awk, mawk, nawk, gawk | |
|
31 | | Bash | bash, sh, zsh | |
|
32 | | Basic | basic | |
|
33 | | BBCode | bbcode | [highlightjs-bbcode](https://github.com/RedGuy12/highlightjs-bbcode) |
|
34 | | Blade (Laravel) | blade | [highlightjs-blade](https://github.com/miken32/highlightjs-blade) |
|
35 | | BNF | bnf | |
|
36 | | Brainfuck | brainfuck, bf | |
|
37 | | C# | csharp, cs | |
|
38 | | C | c, h | |
|
39 | | C++ | cpp, hpp, cc, hh, c++, h++, cxx, hxx | |
|
40 | | C/AL | cal | |
|
41 | | Cache Object Script | cos, cls | |
|
42 | | CMake | cmake, cmake.in | |
|
43 | | Coq | coq | |
|
44 | | CSP | csp | |
|
45 | | CSS | css | |
|
46 | | Cap’n Proto | capnproto, capnp | |
|
47 | | Chaos | chaos, kaos | [highlightjs-chaos](https://github.com/chaos-lang/highlightjs-chaos) |
|
48 | | Chapel | chapel, chpl | [highlightjs-chapel](https://github.com/chapel-lang/highlightjs-chapel) |
|
49 | | Cisco CLI | cisco | [highlightjs-cisco-cli](https://github.com/BMatheas/highlightjs-cisco-cli) |
|
50 | | Clojure | clojure, clj | |
|
51 | | CoffeeScript | coffeescript, coffee, cson, iced | |
|
52 | | CpcdosC+ | cpc | [highlightjs-cpcdos](https://github.com/SPinti-Software/highlightjs-cpcdos) |
|
53 | | Crmsh | crmsh, crm, pcmk | |
|
54 | | Crystal | crystal, cr | |
|
55 | | cURL | curl | [highlightjs-curl](https://github.com/highlightjs/highlightjs-curl) |
|
56 | | Cypher (Neo4j) | cypher | [highlightjs-cypher](https://github.com/highlightjs/highlightjs-cypher) |
|
57 | | D | d | |
|
58 | | Dafny | dafny | [highlightjs-dafny](https://github.com/ConsenSys/highlightjs-dafny)|
|
59 | | Dart | dart | |
|
60 | | Delphi | dpr, dfm, pas, pascal | |
|
61 | | Diff | diff, patch | |
|
62 | | Django | django, jinja | |
|
63 | | DNS Zone file | dns, zone, bind | |
|
64 | | Dockerfile | dockerfile, docker | |
|
65 | | DOS | dos, bat, cmd | |
|
66 | | dsconfig | dsconfig | |
|
67 | | DTS (Device Tree) | dts | |
|
68 | | Dust | dust, dst | |
|
69 | | Dylan | dylan | [highlightjs-dylan](https://github.com/highlightjs/highlightjs-dylan) |
|
70 | | EBNF | ebnf | |
|
71 | | Elixir | elixir | |
|
72 | | Elm | elm | |
|
73 | | Erlang | erlang, erl | |
|
74 | | Excel | excel, xls, xlsx | |
|
75 | | Extempore | extempore, xtlang, xtm | [highlightjs-xtlang](https://github.com/highlightjs/highlightjs-xtlang) |
|
76 | | F# | fsharp, fs | |
|
77 | | FIX | fix | |
|
78 | | Fortran | fortran, f90, f95 | |
|
79 | | G-Code | gcode, nc | |
|
80 | | Gams | gams, gms | |
|
81 | | GAUSS | gauss, gss | |
|
82 | | GDScript | godot, gdscript | [highlightjs-gdscript](https://github.com/highlightjs/highlightjs-gdscript) |
|
83 | | Gherkin | gherkin | |
|
84 | | Glimmer and EmberJS | hbs, glimmer, html.hbs, html.handlebars, htmlbars | [highlightjs-glimmer](https://github.com/NullVoxPopuli/highlightjs-glimmer) |
|
85 | | GN for Ninja | gn, gni | [highlightjs-GN](https://github.com/highlightjs/highlightjs-GN) |
|
86 | | Go | go, golang | |
|
87 | | Grammatical Framework | gf | [highlightjs-gf](https://github.com/johnjcamilleri/highlightjs-gf) |
|
88 | | Golo | golo, gololang | |
|
89 | | Gradle | gradle | |
|
90 | | GraphQL | graphql | |
|
91 | | Groovy | groovy | |
|
92 | | GSQL | gsql | [highlightjs-gsql](https://github.com/DanBarkus/highlightjs-gsql) |
|
93 | | HTML, XML | xml, html, xhtml, rss, atom, xjb, xsd, xsl, plist, svg | |
|
94 | | HTTP | http, https | |
|
95 | | Haml | haml | |
|
96 | | Handlebars | handlebars, hbs, html.hbs, html.handlebars | |
|
97 | | Haskell | haskell, hs | |
|
98 | | Haxe | haxe, hx | |
|
99 | | High-level shader language| hlsl | [highlightjs-hlsl](https://github.com/highlightjs/highlightjs-hlsl) |
|
100 | | Hy | hy, hylang | |
|
101 | | Ini, TOML | ini, toml | |
|
102 | | Inform7 | inform7, i7 | |
|
103 | | IRPF90 | irpf90 | |
|
104 | | JSON | json | |
|
105 | | Java | java, jsp | |
|
106 | | JavaScript | javascript, js, jsx | |
|
107 | | Jolie | jolie, iol, ol | [highlightjs-jolie](https://github.com/xiroV/highlightjs-jolie) |
|
108 | | Julia | julia, julia-repl | |
|
109 | | Kotlin | kotlin, kt | |
|
110 | | LaTeX | tex | |
|
111 | | Leaf | leaf | |
|
112 | | Lean | lean | [highlightjs-lean](https://github.com/leanprover-community/highlightjs-lean) |
|
113 | | Lasso | lasso, ls, lassoscript | |
|
114 | | Less | less | |
|
115 | | LDIF | ldif | |
|
116 | | Lisp | lisp | |
|
117 | | LiveCode Server | livecodeserver | |
|
118 | | LiveScript | livescript, ls | |
|
119 | | Lua | lua | |
|
120 | | Macaulay2 | macaulay2 | [highlightjs-macaulay2](https://github.com/d-torrance/highlightjs-macaulay2) |
|
121 | | Makefile | makefile, mk, mak, make | |
|
122 | | Markdown | markdown, md, mkdown, mkd | |
|
123 | | Mathematica | mathematica, mma, wl | |
|
124 | | Matlab | matlab | |
|
125 | | Maxima | maxima | |
|
126 | | Maya Embedded Language | mel | |
|
127 | | Mercury | mercury | |
|
128 | | mIRC Scripting Language | mirc, mrc | [highlightjs-mirc](https://github.com/highlightjs/highlightjs-mirc) |
|
129 | | Mizar | mizar | |
|
130 | | MKB | mkb | [highlightjs-mkb](https://github.com/Dereavy/highlightjs-mkb) |
|
131 | | Mojolicious | mojolicious | |
|
132 | | Monkey | monkey | |
|
133 | | Moonscript | moonscript, moon | |
|
134 | | N1QL | n1ql | |
|
135 | | NSIS | nsis | |
|
136 | | Never | never | [highlightjs-never](https://github.com/never-lang/highlightjs-never) |
|
137 | | Nginx | nginx, nginxconf | |
|
138 | | Nim | nim, nimrod | |
|
139 | | Nix | nix | |
|
140 | | Object Constraint Language | ocl | [highlightjs-ocl](https://github.com/nhomble/highlightjs-ocl) |
|
141 | | OCaml | ocaml, ml | |
|
142 | | Objective C | objectivec, mm, objc, obj-c, obj-c++, objective-c++ | |
|
143 | | OpenGL Shading Language | glsl | |
|
144 | | OpenSCAD | openscad, scad | |
|
145 | | Oracle Rules Language | ruleslanguage | |
|
146 | | Oxygene | oxygene | |
|
147 | | PF | pf, pf.conf | |
|
148 | | PHP | php | |
|
149 | | Papyrus | papyrus, psc |[highlightjs-papyrus](https://github.com/Pickysaurus/highlightjs-papyrus) |
|
150 | | Parser3 | parser3 | |
|
151 | | Perl | perl, pl, pm | |
|
152 | | Pine Script | pine, pinescript | [highlightjs-pine](https://github.com/jeyllani/highlightjs-pine) |
|
153 | | Plaintext | plaintext, txt, text | |
|
154 | | Pony | pony | |
|
155 | | PostgreSQL & PL/pgSQL | pgsql, postgres, postgresql | |
|
156 | | PowerShell | powershell, ps, ps1 | |
|
157 | | Processing | processing | |
|
158 | | Prolog | prolog | |
|
159 | | Properties | properties | |
|
160 | | Protocol Buffers | protobuf | |
|
161 | | Puppet | puppet, pp | |
|
162 | | Python | python, py, gyp | |
|
163 | | Python profiler results | profile | |
|
164 | | Python REPL | python-repl, pycon | |
|
165 | | Q# | qsharp | [highlightjs-qsharp](https://github.com/fedonman/highlightjs-qsharp) |
|
166 | | Q | k, kdb | |
|
167 | | QML | qml | |
|
168 | | R | r | |
|
169 | | Razor CSHTML | cshtml, razor, razor-cshtml | [highlightjs-cshtml-razor](https://github.com/highlightjs/highlightjs-cshtml-razor) |
|
170 | | ReasonML | reasonml, re | |
|
171 | | Rebol & Red | redbol, rebol, red, red-system | [highlightjs-redbol](https://github.com/oldes/highlightjs-redbol) |
|
172 | | RenderMan RIB | rib | |
|
173 | | RenderMan RSL | rsl | |
|
174 | | RiScript | risc, riscript | [highlightjs-riscript](https://github.com/highlightjs/highlightjs-riscript) |
|
175 | | Roboconf | graph, instances | |
|
176 | | Robot Framework | robot, rf | [highlightjs-robot](https://github.com/highlightjs/highlightjs-robot) |
|
177 | | RPM spec files | rpm-specfile, rpm, spec, rpm-spec, specfile | [highlightjs-rpm-specfile](https://github.com/highlightjs/highlightjs-rpm-specfile) |
|
178 | | Ruby | ruby, rb, gemspec, podspec, thor, irb | |
|
179 | | Rust | rust, rs | |
|
180 | | SAS | SAS, sas | |
|
181 | | SCSS | scss | |
|
182 | | SQL | sql | |
|
183 | | STEP Part 21 | p21, step, stp | |
|
184 | | Scala | scala | |
|
185 | | Scheme | scheme | |
|
186 | | Scilab | scilab, sci | |
|
187 | | Shape Expressions | shexc | [highlightjs-shexc](https://github.com/highlightjs/highlightjs-shexc) |
|
188 | | Shell | shell, console | |
|
189 | | Smali | smali | |
|
190 | | Smalltalk | smalltalk, st | |
|
191 | | SML | sml, ml | |
|
192 | | Solidity | solidity, sol | [highlightjs-solidity](https://github.com/highlightjs/highlightjs-solidity) |
|
193 | | Splunk SPL | spl | [highlightjs-spl](https://github.com/swsoyee/highlightjs-spl) |
|
194 | | Stan | stan, stanfuncs | |
|
195 | | Stata | stata | |
|
196 | | Structured Text | iecst, scl, stl, structured-text | [highlightjs-structured-text](https://github.com/highlightjs/highlightjs-structured-text) |
|
197 | | Stylus | stylus, styl | |
|
198 | | SubUnit | subunit | |
|
199 | | Supercollider | supercollider, sc | [highlightjs-supercollider](https://github.com/highlightjs/highlightjs-supercollider) |
|
200 | | Svelte | svelte | [highlightjs-svelte](https://github.com/AlexxNB/highlightjs-svelte) |
|
201 | | Swift | swift | |
|
202 | | Tcl | tcl, tk | |
|
203 | | Terraform (HCL) | terraform, tf, hcl | [highlightjs-terraform](https://github.com/highlightjs/highlightjs-terraform) |
|
204 | | Test Anything Protocol | tap | |
|
205 | | Thrift | thrift | |
|
206 | | TP | tp | |
|
207 | | Transact-SQL | tsql | [highlightjs-tsql](https://github.com/highlightjs/highlightjs-tsql) |
|
208 | | Twig | twig, craftcms | |
|
209 | | TypeScript | typescript, ts | |
|
210 | | Unicorn Rails log | unicorn-rails-log | [highlightjs-unicorn-rails-log](https://github.com/sweetppro/highlightjs-unicorn-rails-log) |
|
211 | | VB.Net | vbnet, vb | |
|
212 | | VBA | vba | [highlightjs-vba](https://github.com/dullin/highlightjs-vba) |
|
213 | | VBScript | vbscript, vbs | |
|
214 | | VHDL | vhdl | |
|
215 | | Vala | vala | |
|
216 | | Verilog | verilog, v | |
|
217 | | Vim Script | vim | |
|
218 | | X# | xsharp, xs, prg | [highlightjs-xsharp](https://github.com/InfomindsAg/highlightjs-xsharp) |
|
219 | | X++ | axapta, x++ | |
|
220 | | x86 Assembly | x86asm | |
|
221 | | XL | xl, tao | |
|
222 | | XQuery | xquery, xpath, xq | |
|
223 | | YAML | yml, yaml | |
|
224 | | ZenScript | zenscript, zs |[highlightjs-zenscript](https://github.com/highlightjs/highlightjs-zenscript) |
|
225 | | Zephir | zephir, zep | |
|
226 |
|
227 |
|
228 |
|
229 | ## Alias Overlap
|
230 |
|
231 | If you are using either of these languages at the same time please be sure to
|
232 | use the full name and not the alias to avoid any ambiguity.
|
233 |
|
234 | | Language | Overlap |
|
235 | | :-----------------------| :--------------------- |
|
236 | | SML | ml |
|
237 | | OCaml | ml |
|
238 | | Lasso | ls |
|
239 | | LiveScript | ls |
|
240 |
|
241 |
|
242 | [1]: https://github.com/highlightjs/highlight.js#getting-the-library
|
243 | [2]: https://github.com/highlightjs/highlight.js#importing-the-library
|