Skip to content

Latest commit

History

History
646 lines (632 loc) · 81.8 KB

File metadata and controls

646 lines (632 loc) · 81.8 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 alias marked as code can be used within LiaScript code-blocks. If you want to apply another language not yet supported, then plaintext will be used as a default.

This mapping is applied by LiaScript at:

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

... and will be updated in accordance with this document. Feel free to make comments/issues or to add other mappings.

highlight.jsaliaslanguagecategorycloud9/ace
1c1C:Enterpriseenterprise
4d
abapsap-abapABAB (Advanced Business Application Programming)enterpriseabap
ABCcommonabc
abnfAugmented Backus-Naur Form
accesslogApache Access Loglogs
actionscriptasActionScriptscriptingactionscript
adaAdaada
alani, lnAlan IF
Aldamusicalda
angelscriptascAngelScriptscriptingc_cpp
apacheapacheconfApache configconfigapache_conf
APEXenterpriseapex
applescriptosascriptAppleScriptscriptingapplescript
AQL (ArangoDB Query Language)aql
arcadeArcGIS Arcadescripting
arduinoinoArduinoc_cpp
armasmarmARM Assemblyassemblerassembly_x86
ASL (ACPI Source Language)asl
asciidocadocAsciiDocmarkupasciidoc
aspectjAspectJjava
astroAstrofunctionalastro
autohotkeyahkAutoHotkeyscriptingautohotkey
autoitAutoItscripting
avrasmasmAVR Assemblyassemblerassembly_x86
awkmawk, nawk, gawkAwk
axaptaMicrosoft X++enterprise
bashsh, zshBashcommonsh
basicBASICvbscript
bbcodeBBCode
bnfBackus–Naur Form
brainfuckbfBrainfuckesoteric
chCsystemc_cpp
c9search
calC/AL
capnprotocapnpCap’n Protoprotocols
ceylonCeylon
Cirrucirru
ciscoCisco CLI
cleandcl, iclCleanfunctional
clojure-replClojure REPLlisp
clojureclj, ednClojurelispclojure
clueCluesystemclue
cmakecmake.inCMakemakefile
Cobolenterprisecobol
coffeescriptcoffee, cson, icedCoffeeScriptscriptingcoffee
ColdFusioncoldfusion
coqCoqfunctional
cosclsCaché Object Scriptenterprise
cpcCpcdosC+
cppcc, c++, h++, hpp, hh, hxx, cxxC++systemc_cpp
crmshcrm, pcmkcrmshconfigsh
crystalcrCrystalscriptingcrystal
csharpcs, c#C#commoncsharp
Csoundcsound_document
Csoundcsound_orchestra
Csoundcsound_score
cspCSP (ContentSecurityPolicy)csp
cssCSSwebcss
curlcURL
Curlytemplatecurly
cypherCypher (Neo4j)
dDd
dafnyDafny
dartDartscriptingdart
delphidpr, dfm, pas, pascalDelphicommonpascal
diffpatchDiffcommondiff
djangojinjaDjangotemplatedjango
dnsbind, zoneDNS Zoneconfig
dockerfiledockerDockerfileconfigdockerfile
dosbat, cmdBatch file (DOS)batchfile
dsconfigdsconfigconfig
Drollsenterprisedrools
dtsDevice Treeconfig
DOT (graph description language)graphicaldot
dustdstDusttemplate
dylanDylan
ebnfExtended Backus-Naur Form
UN/EDIFACTprotocoledifact
Eiffeleiffel
EJS (Embedded JavaScript templating)templateejs
elixirex, exsElixirfunctionalelixir
elmElmfunctionalelm
erbERB (Embedded Ruby)template
erlang-replErlang REPLfunctional
erlangerlErlangfunctionalerlang
excelxls, xlsxExcel formulae
extemporextlang, xtmExtempore
fixFIX
flixFlixcommonflix
Forthforth
fortranf90, f95Fortranscientificfortran
fsharpfs, f#F#functionalfsharp
FSL (FEMAG script language)scientificfsl
ftl
gamsgmsGAMSscientific
gaussgssGAUSSscientific
gcodencG-codegcode
gherkinfeatureGherkingherkin
gitignore
glslGLSL (OpenGL Shading Language)graphicsglsl
gmlGML (Game Maker Language)scripting
Gobstonesgobstones
gogolangGocommongolang
goloGolo
gradleGradle
graphqlschema
groovyGroovygroovy
hamlHAMLtemplatehaml
handlebarshbs, html.hbs, html.handlebars, htmlbarsHandlebarstemplatehandlebars
haskellhsHaskellfunctionalhaskell
Haskell Cabalhaskell_cabal
haxehxHaxehaxe
Hjson, a user interface for JSONconfighjson
hspHSP (Hot Soup Processor)scripting
html_elixir
html_ruby
httphttpsHTTPprotocol
hyhylangHylisplisp
inform7i7Inform 7markup
initomlTOML, also INIconfigini, toml
ioio
ionionion
irpf90IRPF90scientific
isblISBLenterprise
Jackjack
jade
javajspJavacommonjava, jsp
javascriptjs, jsx, mjs, cjsJavaScriptscriptingjavascript, jsx
jsdocjsdoc_commentJSDocjsdoc
jboss-cliwildfly-cliJBoss CLIconfig
jsonJSON (JavaScript Object Notation)configjson, json5
JSONiqjsoniq
JSSM (JavaScript State Machine)jssm
julia-repljldoctestJulia REPL
juliaJuliacommonjulia
kotlinkot,kt, ktsKotlincommonkotlin
lassols, lassoscriptLasso
latextexLaTeXmarkuplatex, tex
Lattelatte
ldifLDIFconfig
leafLeaf
lessLesswebless
Liquidtemplateliquid
lispLisplisplisp
livecodeserverLiveCodeenterprise
livescriptlsLiveScriptscriptinglivescript
llvmLLVM IRassembler
logiql
logtalk
lslLSL (Linden Scripting Language)scriptinglsl
luaLuascriptinglua
luapage
lucene
makefilemk, mak, make,Makefilecommonmakefile
markdownmd, mkd, mkdownMarkdownmarkupmarkdown
mask
mathematicamma, wlWolfram Languagescientific
matlabMatlabscientificmatlab
maximaMaximascientific
maze
mediawiki
melMEL (Maya Embedded Language)graphicsmel
mercurym, mooMercuryfunctional
mipsasmmipsMIPS Assemblyassemblermips
mixal
mizarMizarscientific
mojoliciousMojolicioustemplate
monkeyMonkey
moonscriptmoonMoonScriptscripting
mushcode
mysql
n1qlN1QL (Couchbase query language)
Not Another Scripting LAnguagescriptingnasal
nestedtextntNestedTextconfig
nginxnginxconfNginx configconfignginx
nimNimsystemnim
nixnixosNixnix
node-replNode REPLscripting
nsisNSIS (Nullsoft Scriptable Install System)nsis
nunjucks, nunjs
objectivecmm, objc, obj-c, obj-c++, objective-c++Objective-Ccommonobjectivec
ocamlmlOCamlfunctionalocaml
odinOdinsystemodin
openscadscadOpenSCADscientificscad
oxygeneOxygene
parser3Parser3template
PartiQLpartiql
perlpl, pmPerlcommonperl
pfpf.confPacket Filter configconfig
pgsqlpostgres, postgresqlPostgreSQL and PL/pgSQLpgsql
php-templatePHP Templatecommon
phpPHPcommonphp
php_laravel_blade
Apache Pigpig
plaintexttext, txtPlain text without any highlightingplaintext, text
PL/SQLdatabaseplsql
ponyPony
powershellpwsh, ps, ps1PowerShellpowershell
praat
prisma
processingpdeProcessinggraphicsc_cpp
profilePython profiler
prologProloglogicprolog
properties.propertiesconfigproperties
protobufProtocol Buffersprotocolsprotobuf
puppetppPuppetconfigpuppet
purebasicpb, pbiPureBASICvbscript
python-replpyconPython REPLcommon
pythonpy, gyp, ipythonPythoncommonpython
qk, kdbQ
qmlqtQMLscriptingqml
qsharpQ#
rRscientificr
raku
razor
rdoc
reasonmlreReasonMLfunctional
red
redshift
rhtml
ribRenderMan RIBgraphics
roboconfgraph, instancesRoboconfconfig
routerosMicrotik RouterOS script
rslRenderMan RSLgraphics
restreStructuredTextrst
rubygemspec, irb, podspec, rb, thorRubycommonruby
ruleslanguageOracle Rules Languageenterprise
rustrsRustcommonrust
SACsac
sasSAS
sass
scalaScalafunctionalscala
schemeSchemelispscheme
scilabsciScilabscientific
scssSCSSwebscss
shellconsole, shellsessionShell Sessioncommonsh
sjs
slim
smaliSmali
smalltalkstSmalltalk
smarty
smithy
smlmlSML (Standard ML)functional
soliditysolSolidity
soy
space
sparql
splSlunk SPL
sqfSQFscripting
sqlSQLdatabasesql
sqlserver
stanstanfuncsStan probabilistic programming languagescientific
stataado, doStatascientific
step21p21, step, stpSTEP Part 21
structured-textiecst, scl, stlStructured Text
stylusstylStyluswebstylus
subunitSubUnit
supercolliderscSupercollider
svelte
websvg
swiftSwiftcommonswift
taggerscriptTagger Script
tapTest Anything Protocol
tcltkTcltcl
terraform
textile
thriftThriftprotocols
toitToit
tpTP
turtle
twigcraftcmsTwigtemplatetwig
typescriptts, tsxTypeScriptcommontypescript, tsx
tsvTab-Separated Valuesdatatsv
unicorn-rails-logUnicorn Rails log
valaValavala
vbnetvbVisual Basic .NETcommonvbscript
vbscript-htmlVBScript in HTMLscripting
vbscriptvbsVBScriptscriptingvbscript
velocity
verilogsv, svh, vVerilogverilog
vhdlVHDLvhdl
vimVim Scriptscripting
visualforce
webvue
wasmWebAssemblyweb
Wollokwollok
wrenWrenscripting
x++axaptaX++
x86asmIntel x86 Assemblyassemblerassembly_x86
xsharpxs, prgX#
xltaoXL
xmlatom, html, plist, rss, wsf, xhtml, xjb, xsd, xslHTML, XMLhtml, svg, xml
xqueryxpath, xqXQueryfunctionalxquery
yamlymlYAMLconfigyaml
zeek
zenscriptzsZenScript
zephirzepZephir
Zigcommonzig

Short List

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

short-codesyntax-highlighting
abapabap
sap-abapabap
abcabc
actionscriptactionscript
asactionscript
adaada
aldaalda
angelscriptc_cpp
ascc_cpp
apacheapache_conf
apacheconfapache_conf
apache_confapache_conf
apexapex
applescriptapplescript
osascriptapplescript
aqlaql
arduinoc_cpp
inoc_cpp
armasmassembly_x86
armassembly_x86
aslasl
asciidocasciidoc
adocasciidoc
aspectjjava
autohotkeyautohotkey
ahkautohotkey
avrasmassembly_x86
asmassembly_x86
bashsh
shsh
basicvbscript
cc_cpp
hc_cpp
c9searchc9search
cirrucirru
clojureclojure
cljclojure
ednclojure
cmakemakefile
cmake.inmakefile
cobolcobol
coffeescriptcoffee
coffeecoffee
csoncoffee
icedcoffee
coldfusioncoldfusion
cppc_cpp
ccc_cpp
c++c_cpp
h++c_cpp
hppc_cpp
hhc_cpp
hxxc_cpp
cxxc_cpp
crmshsh
crmsh
pcmksh
crystalcrystal
crcrystal
csharpcsharp
cscsharp
c#csharp
csound_documentcsound_document
csound_orchestracsound_orchestra
csound_scorecsound_score
cspcsp
csscss
curlycurly
dd
dartdart
delphipascal
dprpascal
dfmpascal
paspascal
pascalpascal
diffdiff
patchdiff
djangodjango
jinjadjango
dockerfiledockerfile
dockerdockerfile
dosbatchfile
batbatchfile
cmdbatchfile
batchfilebatchfile
droolsdrools
dotdot
edifactedifact
eiffeleiffel
ejsejs
elixirelixir
exelixir
exselixir
elmelm
erlangerlang
erlerlang
forthforth
fortranfortran
f90fortran
f95fortran
fsharpfsharp
fsfsharp
f#fsharp
fslfsl
ftlftl
gcodegcode
ncgcode
gherkingherkin
featuregherkin
gitignoregitignore
glslglsl
gobstonesgobstones
gogolang
golanggolang
graphqlschemagraphqlschema
groovygroovy
hamlhaml
handlebarshandlebars
hbshandlebars
html.hbshandlebars
html.handlebarshandlebars
htmlbarshandlebars
haskellhaskell
hshaskell
haskell_cabalhaskell_cabal
haxehaxe
hxhaxe
hjsonhjson
html_elixirhtml_elixir
html_rubyhtml_ruby
hylisp
hylanglisp
iniini
tomltoml
ioio
ionion
jackjack
jadejade
javajava
jspjsp
javascriptjavascript
jsjavascript
mjsjavascript
cjsjavascript
jsxjsx
jsonjson
json5json5
jsoniqjsoniq
jssmjssm
juliajulia
kotlinkotlin
kotkotlin
ktkotlin
ktskotlin
latexlatex
textex
lattelatte
lessless
liquidliquid
lisplisp
livescriptlivescript
lslivescript
logiqllogiql
logtalklogtalk
lsllsl
lualua
luapageluapage
lucenelucene
makefilemakefile
mkmakefile
makmakefile
makemakefile
markdownmarkdown
mdmarkdown
mkdmarkdown
mkdownmarkdown
maskmask
matlabmatlab
mazemaze
mediawikimediawiki
melmel
mipsasmmips
mipsmips
mixalmixal
mushcodemushcode
mysqlmysql
nginxnginx
nginxconfnginx
nimnim
nixnix
nixosnix
nsisnsis
nunjacksnunjacks
objectivecobjectivec
mmobjectivec
objcobjectivec
obj-cobjectivec
obj-c++objectivec
objective-c++objectivec
ocamlocaml
mlocaml
openscadscad
scadscad
perlperl
plperl
pmperl
pgsqlpgsql
postgrespgsql
postgresqlpgsql
phpphp
php_laravel_bladephp_laravel_blade
pigpig
plaintextplaintext
texttext
txttext
partiqlpartiql
powershellpowershell
pwshpowershell
pspowershell
ps1powershell
praatpraat
prismaprisma
processingc_cpp
pdec_cpp
prologprolog
propertiesproperties
protobufprotobuf
puppetpuppet
pppuppet
purebasicvbscript
pbvbscript
pbivbscript
pythonpython
pypython
gyppython
ipythonpython
qmlqml
qtqml
rr
rakuraku
razorrazor
rdocrdoc
redred
redshiftredshift
rhtmlrhtml
rstrst
restrst
rubyruby
gemspecruby
irbruby
podspecruby
rbruby
thorruby
rustrust
rsrust
sacsac
sasssass
scalascala
schemescheme
scssscss
shellsh
consolesh
shellsessionsh
sjssjs
slimslim
smartysmarty
smithysmithy
soysoy
spacespace
sparqlsparql
sqlsql
sqlserversqlserver
stylusstylus
stylstylus
swiftswift
tcltcl
tktcl
terraformterraform
textiletextile
turtleturtle
twigtwig
craftcmstwig
typescripttypescript
tstypescript
tsxtsx
valavala
vbnetvbscript
vbvbscript
vbscriptvbscript
vbsvbscript
velocityvelocity
verilogverilog
vhdlvhdl
visualforcevisualforce
wollokwollok
x86asmassembly_x86
xmlxml
atomxml
htmlhtml
plistxml
rssxml
svgsvg
wsfxml
xhtmlxml
xjbxml
xsdxml
xslxml
xqueryxquery
xpathxquery
xqxquery
yamlyaml
ymlyaml
zeekzeek