Skip to content

Latest commit

 

History

History
847 lines (833 loc) · 93.7 KB

Code.md

File metadata and controls

847 lines (833 loc) · 93.7 KB

Language Mappings

This document contains a list of mappings for language identifiers for highlight.js, which is mostly used in Markdown parsers, and ace, which is applied by LiaScript. Since both projects do not contain all languages and the names of the language identifiers might vary, we provide a mapping.

All language identifiers and aliases marked as code get syntax highlighting within LiaScript code-blocks. All other identifiers, as well as languages that are not listed at all, are shown as plain text without any highlighting.

This mapping is applied by LiaScript at:

https://github.com/LiaScript/LiaScript/blob/development/src/typescript/webcomponents/editor-modes.ts

The Short List at the end contains all identifiers that are defined there (state of LiaScript 2.6.0), including additional file endings that are not part of highlight.js. Feel free to make comments/issues or to add other mappings.

highlight.js alias language category cloud9/ace
1c 1C:Enterprise enterprise
4d
abap sap-abap ABAB (Advanced Business Application Programming) enterprise abap
abc ABC common abc
abnf Augmented Backus-Naur Form
accesslog Apache Access Log logs
actionscript as ActionScript scripting actionscript
ada Ada ada
alan i, ln Alan IF
alda Alda music alda
angelscript asc AngelScript scripting c_cpp
apache apacheconf Apache config config apache_conf
apex, cls, trigger, tgr APEX enterprise apex
applescript osascript AppleScript scripting applescript
aql AQL (ArangoDB Query Language) aql
arcade ArcGIS Arcade scripting
arduino ino Arduino c_cpp
armasm arm ARM Assembly assembler assembly_arm32
asl, dsl, asl.json ASL (ACPI Source Language) asl
asciidoc adoc AsciiDoc markup asciidoc
aspectj AspectJ java
astro Astro functional astro
autohotkey ahk AutoHotkey scripting autohotkey
autoit AutoIt scripting
avrasm asm AVR Assembly assembler assembly_x86
awk mawk, nawk, gawk Awk
axapta Microsoft X++ enterprise
bash sh, zsh Bash common sh
basic bas BASIC basic
bbcode BBCode
bibtex, bib BibTeX markup bibtex
bnf Backus–Naur Form
brainfuck bf Brainfuck esoteric
c h C system c_cpp
c9search, c9search_results Cloud9 search results c9search
cal C/AL
capnproto capnp Cap’n Proto protocols
cedar Cedar policy language cedar
cedarschema Cedar schema cedarschema
ceylon Ceylon
cirru Cirru cirru
cisco Cisco CLI
clean dcl, icl Clean functional
clojure-repl Clojure REPL lisp
clojure clj, edn Clojure lisp clojure
clue Clue system clue
cmake cmake.in CMake makefile
cobol, cbl, cob Cobol enterprise cobol
coffeescript coffee, cson, iced CoffeeScript scripting coffee
coldfusion, cfm, cfc ColdFusion coldfusion
coq Coq functional
cos cls Caché Object Script enterprise
cpc CpcdosC+
cpp cc, c++, h++, hpp, hh, hxx, cxx C++ system c_cpp
crmsh crm, pcmk crmsh config sh
crystal cr Crystal scripting crystal
csharp cs, c# C# common csharp
csound_document, csd Csound csound_document
csound_orchestra, orc Csound csound_orchestra
csound_score, sco Csound csound_score
csp CSP (ContentSecurityPolicy) csp
css CSS web css
csv Comma-Separated Values data csv
curl cURL
curly Curly template curly
cuttlefish Cuttlefish config config cuttlefish
cypher Cypher (Neo4j)
d D d
dafny Dafny
dart Dart scripting dart
delphi dpr, dfm, pas, pascal Delphi common pascal
diff patch Diff common diff
django jinja Django template django
dns bind, zone DNS Zone config
dockerfile docker Dockerfile config dockerfile
dos bat, cmd Batch file (DOS) batchfile
dsconfig dsconfig config
drools, drl Drools enterprise drools
dts Device Tree config
dot DOT (graph description language) graphical dot
dust dst Dust template
dylan Dylan
ebnf Extended Backus-Naur Form
edifact, edi UN/EDIFACT protocol edifact
eiffel, e, ge Eiffel eiffel
ejs EJS (Embedded JavaScript templating) template ejs
elixir ex, exs Elixir functional elixir
elm Elm functional elm
erb ERB (Embedded Ruby) template html_ruby
erlang-repl Erlang REPL functional
erlang erl Erlang functional erlang
excel xls, xlsx Excel formulae
extempore xtlang, xtm Extempore
fix FIX
flix Flix common flix
forth, frt, ldr, fth, 4th Forth forth
fortran f90, f95 Fortran scientific fortran
fsharp fs, f# F# functional fsharp
fsl FSL (FEMAG script language) scientific fsl
ftl FreeMarker Template Language template ftl
gams gms GAMS scientific
gauss gss GAUSS scientific
gdscript gd GDScript (Godot) scripting gdscript
gdshader gdshaderinc Godot Shading Language graphics gdshader
gdresource tres, tscn Godot Resource/Scene config gdresource
gcode nc G-code gcode
gherkin feature Gherkin gherkin
gitignore, .gitignore .gitignore config gitignore
glsl GLSL (OpenGL Shading Language) graphics glsl
gml GML (Game Maker Language) scripting
gobstones, gbs Gobstones gobstones
go golang Go common golang
golo Golo
gradle Gradle
graphqlschema, gql GraphQL schema query graphqlschema
groovy Groovy groovy
groq GROQ query groq
haml HAML template haml
handlebars hbs, html.hbs, html.handlebars, htmlbars Handlebars template handlebars
haskell hs Haskell functional haskell
haskell_cabal, cabal Haskell Cabal haskell_cabal
haxe hx Haxe haxe
hjson Hjson, a user interface for JSON config hjson
hsp HSP (Hot Soup Processor) scripting
eex, html_elixir, html.eex HTML with Embedded Elixir (EEx) template html_elixir
html_ruby, erb, html.erb HTML with Embedded Ruby (ERB) template html_ruby
http https HTTP protocol
hy hylang Hy lisp lisp
inform7 i7 Inform 7 markup
ini toml TOML, also INI config ini, toml
io io io
ion ion ion ion
irpf90 IRPF90 scientific
isbl ISBL enterprise
jack Jack jack
jade, pug Pug (formerly Jade) template jade
java jsp Java common java, jsp
javascript js, jsx, mjs, cjs JavaScript scripting javascript, jsx
jexl JEXL scripting jexl
jsdoc jsdoc_comment JSDoc javascript
jboss-cli wildfly-cli JBoss CLI config
json JSON (JavaScript Object Notation) config json
json5 JSON5 config json5
jsoniq, jq JSONiq jsoniq
jssm, jssm_state JSSM (JavaScript State Machine) jssm
julia-repl jldoctest Julia REPL
julia Julia common julia
kotlin kot, kt, kts Kotlin common kotlin
lasso ls, lassoscript Lasso
latex tex LaTeX markup latex, tex
latte Latte latte
ldif LDIF config
leaf Leaf
less Less web less
liquid Liquid template liquid
lisp Lisp lisp lisp
livecodeserver LiveCode enterprise
livescript ls LiveScript scripting livescript
llvm LLVM IR assembler
logiql, lql, logic LogiQL (LogicBlox) database logiql
logtalk, lgt Logtalk logtalk
lsl LSL (Linden Scripting Language) scripting lsl
lua Lua scripting lua
luapage, lp Lua Pages template luapage
lucene Apache Lucene query syntax query lucene
makefile mk, mak, make Makefile common makefile
mariadb MariaDB database mariadb
markdown md, mkd, mkdown Markdown markup markdown
mask MaskJS template mask
mathematica mma, wl Wolfram Language scientific
matlab Matlab scientific matlab
maxima Maxima scientific
maze, mz Maze (esoteric language) maze
mediawiki, wiki MediaWiki markup markup mediawiki
mel MEL (Maya Embedded Language) graphics mel
mercury m, moo Mercury functional
mipsasm mips MIPS Assembly assembler mips
mixal MIXAL (MIX assembly) assembler mixal
mizar Mizar scientific
mojolicious Mojolicious template
monkey Monkey
moonscript moon MoonScript scripting
mushcode, mc, mush MUSHcode scripting mushcode
mysql MySQL database mysql
n1ql N1QL (Couchbase query language)
nasal, nas Not Another Scripting LAnguage scripting nasal
nestedtext nt NestedText config
nginx nginxconf Nginx config config nginx
nim Nim system nim
nix nixos Nix nix
node-repl Node REPL scripting
nsis NSIS (Nullsoft Scriptable Install System) nsis
nunjucks, nunjs, nj, njk Nunjucks template nunjucks
objectivec mm, objc, obj-c, obj-c++, objective-c++ Objective-C common objectivec
ocaml ml OCaml functional ocaml
odin Odin system odin
openscad scad OpenSCAD scientific scad
oxygene Oxygene
parser3 Parser3 template
partiql, pql PartiQL partiql
perl pl, pm Perl common perl
pf pf.conf Packet Filter config config
pgsql postgres, postgresql PostgreSQL and PL/pgSQL pgsql
php-template PHP Template common
php PHP common php
php_laravel_blade, blade.php Laravel Blade template php_laravel_blade
pig Apache Pig pig
plaintext text, txt, plain_text Plain text without any highlighting text, plain_text
plsql PL/SQL database plsql
pony Pony
powershell pwsh, ps, ps1 PowerShell powershell
praat, praatscript, psc, proc Praat scripts scientific praat
prisma Prisma schema database prisma
processing pde Processing graphics c_cpp
profile Python profiler
prolog Prolog logic prolog
properties .properties config properties
protobuf Protocol Buffers protocols protobuf
prql PRQL query prql
puppet pp Puppet config puppet
purebasic pb, pbi PureBASIC vbscript
python-repl pycon Python REPL common
python py, gyp, ipython Python common python
q k, kdb Q
qml qt QML scripting qml
qsharp Q#
r R scientific r
raku, rakumod, rakutest, p6, pl6, pm6 Raku (formerly Perl 6) common raku
razor, cshtml Razor (ASP.NET) template razor
rdoc, rd RDoc markup rdoc
reasonml re ReasonML functional
red, reds Red red
redshift Amazon Redshift SQL database redshift
rhtml R HTML (knitr) template rhtml
rib RenderMan RIB graphics
roboconf graph, instances Roboconf config
robot, resource Robot Framework robot
routeros Microtik RouterOS script
rsl RenderMan RSL graphics
rst, rest reStructuredText rst
ruby gemspec, irb, podspec, rb, thor Ruby common ruby
ruleslanguage Oracle Rules Language enterprise
rust rs Rust common rust
sac SAC sac
sas SAS
sass Sass (indented syntax) web sass
scala Scala functional scala
scheme Scheme lisp scheme
scilab sci Scilab scientific
scrypt sCrypt scrypt
scss SCSS web scss
shell console, shellsession Shell Session common sh
sjs StratifiedJS scripting sjs
slim, skim Slim template slim
smali Smali
smalltalk st Smalltalk
smarty Smarty template smarty
smithy Smithy smithy
sml ml SML (Standard ML) functional
snippets Ace snippets snippets
solidity sol Solidity
soy, soy_template Closure Templates (Soy) template soy_template
space Space (Tree Notation) space
sparql, rq SPARQL query sparql
spl Splunk SPL
sqf SQF scripting
sql SQL database sql
sqlserver Microsoft SQL Server (T-SQL) database sqlserver
stan stanfuncs Stan probabilistic programming language scientific
stata ado, do Stata scientific
step21 p21, step, stp STEP Part 21
structured-text iecst, scl, stl Structured Text
stylus styl Stylus web stylus
subunit SubUnit
supercollider sc Supercollider
svelte
svg SVG web svg
swift Swift common swift
taggerscript Tagger Script
tap Test Anything Protocol
tcl tk Tcl tcl
terraform, tf, tfvars, terragrunt Terraform (HCL) config terraform
textile Textile markup textile
thrift Thrift protocols
toit Toit
tp TP
turtle, ttl Turtle (RDF) data turtle
twig craftcms Twig template twig
typescript ts, tsx TypeScript common typescript, tsx
tsv Tab-Separated Values data tsv
unicorn-rails-log Unicorn Rails log
vala Vala vala
vbnet vb Visual Basic .NET common vbscript
vbscript-html VBScript in HTML scripting
vbscript vbs VBScript scripting vbscript
velocity, vm Apache Velocity template velocity
verilog sv, svh, v Verilog verilog
vhdl VHDL vhdl
vim Vim Script scripting
visualforce, vfp, component, page Visualforce (Salesforce) enterprise visualforce
vue Vue single-file components web vue
wasm WebAssembly web
wollok, wlk, wpgm, wtest Wollok wollok
wren Wren scripting
x++ axapta X++
x86asm Intel x86 Assembly assembler assembly_x86
xsharp xs, prg X#
xl tao XL
xml atom, html, plist, rss, wsf, xhtml, xjb, xsd, xsl HTML, XML xml, html
xquery xpath, xq XQuery functional xquery
yaml yml YAML config yaml
zeek, bro Zeek scripting zeek
zenscript zs ZenScript
zephir zep Zephir
zig Zig common zig

Short List

Complete overview on all supported languages and the applied syntax highlighting scheme of ace.

short-code syntax-highlighting
abap abap
sap-abap abap
abc abc
actionscript actionscript
as actionscript
ada ada
adb ada
alda alda
apache apache_conf
apacheconf apache_conf
apache_conf apache_conf
htaccess apache_conf
htgroups apache_conf
htpasswd apache_conf
apex apex
cls apex
trigger apex
tgr apex
applescript applescript
osascript applescript
angelscript c_cpp
asc c_cpp
astro astro
aql aql
arduino c_cpp
ino c_cpp
armasm assembly_arm32
arm assembly_arm32
assembly_arm32 assembly_arm32
arm32 assembly_arm32
asl asl
dsl asl
asl.json asl
asciidoc asciidoc
adoc asciidoc
aspectj java
autohotkey autohotkey
ahk autohotkey
avrasm assembly_x86
asm assembly_x86
a assembly_x86
bash sh
sh sh
zsh sh
basic basic
bas basic
bibtex bibtex
bib bibtex
c c_cpp
h c_cpp
c9search c9search
c9search_results c9search
cedar cedar
cedarschema cedarschema
cirru cirru
clojure clojure
clj clojure
cljs clojure
edn clojure
clue clue
cmake makefile
cmake.in makefile
cobol cobol
cbl cobol
cob cobol
coffeescript coffee
coffee coffee
cakefile coffee
cf coffee
cson coffee
iced coffee
coldfusion coldfusion
cfm coldfusion
cfc coldfusion
cpp c_cpp
cc c_cpp
c++ c_cpp
h++ c_cpp
hpp c_cpp
hh c_cpp
hxx c_cpp
cxx c_cpp
crmsh sh
crm sh
pcmk sh
crystal crystal
cr crystal
csharp csharp
cs csharp
c# csharp
csound_document csound_document
csd csound_document
csound_orchestra csound_orchestra
orc csound_orchestra
csound_score csound_score
sco csound_score
csp csp
css css
csv csv
curly curly
cuttlefish cuttlefish
d d
di d
dart dart
delphi pascal
dpr pascal
dfm pascal
pas pascal
pascal pascal
diff diff
patch diff
django django
jinja django
djt django
dockerfile dockerfile
docker dockerfile
dos batchfile
bat batchfile
cmd batchfile
batchfile batchfile
prql prql
drools drools
drl drools
dot dot
edifact edifact
edi edifact
eiffel eiffel
e eiffel
ge eiffel
ejs ejs
elixir elixir
ex elixir
exs elixir
elm elm
erlang erlang
erl erlang
hrl erlang
eex html_elixir
flix flix
forth forth
frt forth
ldr forth
fth forth
4th forth
fortran fortran
f90 fortran
f95 fortran
f fortran
fsharp fsharp
fsi fsharp
fs fsharp
fsx fsharp
fsscript fsharp
f# fsharp
fsl fsl
ftl ftl
gdscript gdscript
gd gdscript
gdshader gdshader
gdshaderinc gdshader
gdresource gdresource
tres gdresource
tscn gdresource
gcode gcode
nc gcode
gherkin gherkin
feature gherkin
gitignore gitignore
.gitignore gitignore
glsl glsl
frag glsl
vert glsl
gobstones gobstones
gbs gobstones
go golang
golang golang
graphqlschema graphqlschema
gql graphqlschema
groq groq
groovy groovy
haml haml
handlebars handlebars
hbs handlebars
html.hbs handlebars
html.handlebars handlebars
htmlbars handlebars
tpl handlebars
mustache handlebars
haskell haskell
hs haskell
haskell_cabal haskell_cabal
cabal haskell_cabal
haxe haxe
hx haxe
hjson hjson
html_elixir html_elixir
html.eex html_elixir
html_ruby html_ruby
erb html_ruby
html.erb html_ruby
hy lisp
hylang lisp
ini ini
conf ini
cfg ini
prefs ini
io io
ion ion
jack jack
jade jade
pug jade
java java
jsp jsp
javascript javascript
js javascript
jsm javascript
jsx jsx
cjs javascript
mjs javascript
mts typescript
cts typescript
str typescript
jexl jexl
jsdoc javascript
jsdoc_comment javascript
json json
json5 json5
jsoniq jsoniq
jq jsoniq
jssm jssm
jssm_state jssm
julia julia
jl julia
kotlin kotlin
kot kotlin
kt kotlin
kts kotlin
latex latex
ltx latex
tex tex
latte latte
less less
liquid liquid
lisp lisp
livescript livescript
ls livescript
logiql logiql
lql logiql
logtalk logtalk
lgt logtalk
lsl lsl
lua lua
luapage luapage
lp luapage
lucene lucene
makefile makefile
make makefile
mak makefile
mk makefile
gnumakefile makefile
ocamlmakefile makefile
mariadb mariadb
markdown markdown
md markdown
mkd markdown
mkdown markdown
mask mask
matlab matlab
maze maze
mz maze
mediawiki mediawiki
wiki mediawiki
mel mel
mipsasm mips
mips mips
mixal mixal
mushcode mushcode
mc mushcode
mush mushcode
mysql mysql
nasal nasal
nginx nginx
nginxconf nginx
nas nasal
nim nim
nix nix
nixos nix
nsis nsis
nsh nsis
nsi nsis
nunjucks nunjucks
nunjs nunjucks
nj nunjucks
njk nunjucks
objectivec objectivec
mm objectivec
objc objectivec
obj-c objectivec
obj-c++ objectivec
objective-c++ objectivec
ocaml ocaml
ml ocaml
mli ocaml
odin odin
openscad scad
scad scad
partiql partiql
pql partiql
perl perl
pl perl
pm perl
pgsql pgsql
postgres pgsql
postgresql pgsql
php php
inc php
phtml php
shtml php
php3 php
php4 php
php5 php
phps php
phpt php
aw php
ctp php
module php
php_laravel_blade php_laravel_blade
blade.php php_laravel_blade
pig pig
plain_text plain_text
text text
txt text
plsql plsql
powershell powershell
pwsh powershell
ps powershell
ps1 powershell
praat praat
praatscript praat
psc praat
proc praat
prisma prisma
processing c_cpp
pde c_cpp
prolog prolog
plg prolog
properties properties
protobuf protobuf
proto protobuf
puppet puppet
pp puppet
epp puppet
purebasic vbscript
pb vbscript
pbi vbscript
python python
py python
gyp python
ipython python
pyi python
qml qml
qt qml
r r
raku raku
rakumod raku
rakutest raku
p6 raku
pl6 raku
pm6 raku
razor razor
cshtml razor
rdoc rdoc
rd rdoc
red red
reds red
redshift redshift
rhtml rhtml
robot robot
resource robot
rst rst
rest rst
ruby ruby
gemspec ruby
irb ruby
podspec ruby
guardfile ruby
rakefile ruby
gemfile ruby
rb ruby
rake ruby
thor ruby
rust rust
rs rust
sac sac
sass sass
scala scala
sbt scala
scheme scheme
scm scheme
sm scheme
rkt scheme
oak scheme
logic logiql
scrypt scrypt
scss scss
shell sh
console sh
shellsession sh
sjs sjs
slim slim
skim slim
smarty smarty
smithy smithy
soy soy_template
soy_template soy_template
space space
sparql sparql
rq sparql
sql sql
sqlserver sqlserver
stylus stylus
styl stylus
swift swift
snippets snippets
tcl tcl
tk tcl
terraform terraform
tf terraform
tfvars terraform
terragrunt terraform
toml toml
textile textile
turtle turtle
ttl turtle
twig twig
swig twig
craftcms twig
typescript typescript
ts typescript
tsv tsv
tsx tsx
vala vala
vbnet vbscript
vb vbscript
vbscript vbscript
vbs vbscript
velocity velocity
vm velocity
verilog verilog
sv verilog
svh verilog
v verilog
vh verilog
vhdl vhdl
vhd vhdl
visualforce visualforce
vfp visualforce
component visualforce
page visualforce
vue vue
wollok wollok
wlk wollok
wpgm wollok
wtest wollok
x86asm assembly_x86
xml xml
atom xml
html html
plist xml
rss xml
wsdl xml
xslt xml
svg svg
wsf xml
xbl xml
xhtml html
xjb xml
xsd xml
xsl xml
htm html
we html
wpy html
mathml xml
mml xml
rdf xml
xaml xml
xul xml
xquery xquery
xpath xquery
xq xquery
yaml yaml
yml yaml
zeek zeek
bro zeek
zig zig