8666400c3405636f77b8e8086a9330e3d82b88881025a1cccd2abfcc3effbefa9fca63d280ae56053f5c3da44b35d929b9d3a1c8bb3e773917422d213ead9f 23 KB

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