UNPKG

17.7 kBMarkdownView Raw
1# Supported Languages
2
3The 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<!-- LANGLIST -->
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| Cypher (Neo4j) | cypher | [highlightjs-cypher](https://github.com/highlightjs/highlightjs-cypher) |
56| D | d | |
57| Dafny | dafny | [highlightjs-dafny](https://github.com/ConsenSys/highlightjs-dafny)|
58| Dart | dart | |
59| Delphi | dpr, dfm, pas, pascal | |
60| Diff | diff, patch | |
61| Django | django, jinja | |
62| DNS Zone file | dns, zone, bind | |
63| Dockerfile | dockerfile, docker | |
64| DOS | dos, bat, cmd | |
65| dsconfig | dsconfig | |
66| DTS (Device Tree) | dts | |
67| Dust | dust, dst | |
68| Dylan | dylan | [highlightjs-dylan](https://github.com/highlightjs/highlightjs-dylan) |
69| EBNF | ebnf | |
70| Elixir | elixir | |
71| Elm | elm | |
72| Erlang | erlang, erl | |
73| Excel | excel, xls, xlsx | |
74| Extempore | extempore, xtlang, xtm | [highlightjs-xtlang](https://github.com/highlightjs/highlightjs-xtlang) |
75| F# | fsharp, fs | |
76| FIX | fix | |
77| Fortran | fortran, f90, f95 | |
78| G-Code | gcode, nc | |
79| Gams | gams, gms | |
80| GAUSS | gauss, gss | |
81| GDScript | godot, gdscript | [highlightjs-gdscript](https://github.com/highlightjs/highlightjs-gdscript) |
82| Gherkin | gherkin | |
83| Glimmer and EmberJS | hbs, glimmer, html.hbs, html.handlebars, htmlbars | [highlightjs-glimmer](https://github.com/NullVoxPopuli/highlightjs-glimmer) |
84| GN for Ninja | gn, gni | [highlightjs-GN](https://github.com/highlightjs/highlightjs-GN) |
85| Go | go, golang | |
86| Grammatical Framework | gf | [highlightjs-gf](https://github.com/johnjcamilleri/highlightjs-gf) |
87| Golo | golo, gololang | |
88| Gradle | gradle | |
89| Groovy | groovy | |
90| HTML, XML | xml, html, xhtml, rss, atom, xjb, xsd, xsl, plist, svg | |
91| HTTP | http, https | |
92| Haml | haml | |
93| Handlebars | handlebars, hbs, html.hbs, html.handlebars | |
94| Haskell | haskell, hs | |
95| Haxe | haxe, hx | |
96| High-level shader language| hlsl | [highlightjs-hlsl](https://github.com/highlightjs/highlightjs-hlsl) |
97| Hy | hy, hylang | |
98| Ini, TOML | ini, toml | |
99| Inform7 | inform7, i7 | |
100| IRPF90 | irpf90 | |
101| JSON | json | |
102| Java | java, jsp | |
103| JavaScript | javascript, js, jsx | |
104| Jolie | jolie, iol, ol | [highlightjs-jolie](https://github.com/xiroV/highlightjs-jolie) |
105| Julia | julia, julia-repl | |
106| Kotlin | kotlin, kt | |
107| LaTeX | tex | |
108| Leaf | leaf | |
109| Lean | lean | [highlightjs-lean](https://github.com/leanprover-community/highlightjs-lean) |
110| Lasso | lasso, ls, lassoscript | |
111| Less | less | |
112| LDIF | ldif | |
113| Lisp | lisp | |
114| LiveCode Server | livecodeserver | |
115| LiveScript | livescript, ls | |
116| Lua | lua | |
117| Makefile | makefile, mk, mak, make | |
118| Markdown | markdown, md, mkdown, mkd | |
119| Mathematica | mathematica, mma, wl | |
120| Matlab | matlab | |
121| Maxima | maxima | |
122| Maya Embedded Language | mel | |
123| Mercury | mercury | |
124| mIRC Scripting Language | mirc, mrc | [highlightjs-mirc](https://github.com/highlightjs/highlightjs-mirc) |
125| Mizar | mizar | |
126| MKB | mkb | [highlightjs-mkb](https://github.com/Dereavy/highlightjs-mkb) |
127| Mojolicious | mojolicious | |
128| Monkey | monkey | |
129| Moonscript | moonscript, moon | |
130| N1QL | n1ql | |
131| NSIS | nsis | |
132| Never | never | [highlightjs-never](https://github.com/never-lang/highlightjs-never) |
133| Nginx | nginx, nginxconf | |
134| Nim | nim, nimrod | |
135| Nix | nix | |
136| Object Constraint Language | ocl | [highlightjs-ocl](https://github.com/nhomble/highlightjs-ocl) |
137| OCaml | ocaml, ml | |
138| Objective C | objectivec, mm, objc, obj-c, obj-c++, objective-c++ | |
139| OpenGL Shading Language | glsl | |
140| OpenSCAD | openscad, scad | |
141| Oracle Rules Language | ruleslanguage | |
142| Oxygene | oxygene | |
143| PF | pf, pf.conf | |
144| PHP | php | |
145| Papyrus | papyrus, psc |[highlightjs-papyrus](https://github.com/Pickysaurus/highlightjs-papyrus) |
146| Parser3 | parser3 | |
147| Perl | perl, pl, pm | |
148| Plaintext | plaintext, txt, text | |
149| Pony | pony | |
150| PostgreSQL & PL/pgSQL | pgsql, postgres, postgresql | |
151| PowerShell | powershell, ps, ps1 | |
152| Processing | processing | |
153| Prolog | prolog | |
154| Properties | properties | |
155| Protocol Buffers | protobuf | |
156| Puppet | puppet, pp | |
157| Python | python, py, gyp | |
158| Python profiler results | profile | |
159| Python REPL | python-repl, pycon | |
160| Q# | qsharp | [highlightjs-qsharp](https://github.com/fedonman/highlightjs-qsharp) |
161| Q | k, kdb | |
162| QML | qml | |
163| R | r | |
164| Razor CSHTML | cshtml, razor, razor-cshtml | [highlightjs-cshtml-razor](https://github.com/highlightjs/highlightjs-cshtml-razor) |
165| ReasonML | reasonml, re | |
166| Rebol & Red | redbol, rebol, red, red-system | [highlightjs-redbol](https://github.com/oldes/highlightjs-redbol) |
167| RenderMan RIB | rib | |
168| RenderMan RSL | rsl | |
169| RiScript | risc, riscript | [highlightjs-riscript](https://github.com/highlightjs/highlightjs-riscript) |
170| Roboconf | graph, instances | |
171| Robot Framework | robot, rf | [highlightjs-robot](https://github.com/highlightjs/highlightjs-robot) |
172| RPM spec files | rpm-specfile, rpm, spec, rpm-spec, specfile | [highlightjs-rpm-specfile](https://github.com/highlightjs/highlightjs-rpm-specfile) |
173| Ruby | ruby, rb, gemspec, podspec, thor, irb | |
174| Rust | rust, rs | |
175| SAS | SAS, sas | |
176| SCSS | scss | |
177| SQL | sql | |
178| STEP Part 21 | p21, step, stp | |
179| Scala | scala | |
180| Scheme | scheme | |
181| Scilab | scilab, sci | |
182| Shape Expressions | shexc | [highlightjs-shexc](https://github.com/highlightjs/highlightjs-shexc) |
183| Shell | shell, console | |
184| Smali | smali | |
185| Smalltalk | smalltalk, st | |
186| SML | sml, ml | |
187| Solidity | solidity, sol | [highlightjs-solidity](https://github.com/highlightjs/highlightjs-solidity) |
188| Splunk SPL | spl | [highlightjs-spl](https://github.com/swsoyee/highlightjs-spl) |
189| Stan | stan, stanfuncs | |
190| Stata | stata | |
191| Structured Text | iecst, scl, stl, structured-text | [highlightjs-structured-text](https://github.com/highlightjs/highlightjs-structured-text) |
192| Stylus | stylus, styl | |
193| SubUnit | subunit | |
194| Supercollider | supercollider, sc | [highlightjs-supercollider](https://github.com/highlightjs/highlightjs-supercollider) |
195| Svelte | svelte | [highlightjs-svelte](https://github.com/AlexxNB/highlightjs-svelte) |
196| Swift | swift | |
197| Tcl | tcl, tk | |
198| Terraform (HCL) | terraform, tf, hcl | [highlightjs-terraform](https://github.com/highlightjs/highlightjs-terraform) |
199| Test Anything Protocol | tap | |
200| Thrift | thrift | |
201| TP | tp | |
202| Transact-SQL | tsql | [highlightjs-tsql](https://github.com/highlightjs/highlightjs-tsql) |
203| Twig | twig, craftcms | |
204| TypeScript | typescript, ts | |
205| Unicorn Rails log | unicorn-rails-log | [highlightjs-unicorn-rails-log](https://github.com/sweetppro/highlightjs-unicorn-rails-log) |
206| VB.Net | vbnet, vb | |
207| VBA | vba | [highlightjs-vba](https://github.com/dullin/highlightjs-vba) |
208| VBScript | vbscript, vbs | |
209| VHDL | vhdl | |
210| Vala | vala | |
211| Verilog | verilog, v | |
212| Vim Script | vim | |
213| X# | xsharp, xs, prg | [highlightjs-xsharp](https://github.com/InfomindsAg/highlightjs-xsharp) |
214| X++ | axapta, x++ | |
215| x86 Assembly | x86asm | |
216| XL | xl, tao | |
217| XQuery | xquery, xpath, xq | |
218| YAML | yml, yaml | |
219| ZenScript | zenscript, zs |[highlightjs-zenscript](https://github.com/highlightjs/highlightjs-zenscript) |
220| Zephir | zephir, zep | |
221<!-- LANGLIST_END -->
222
223<!-- document it until we can fix it -->
224## Alias Overlap
225
226If you are using either of these languages at the same time please be sure to
227use the full name and not the alias to avoid any ambiguity.
228
229| Language | Overlap |
230| :-----------------------| :--------------------- |
231| SML | ml |
232| OCaml | ml |
233| Lasso | ls |
234| LiveScript | ls |
235
236
237[1]: https://github.com/highlightjs/highlight.js#getting-the-library
238[2]: https://github.com/highlightjs/highlight.js#importing-the-library