Pygment的语言代号速查表

Python Jekyll 可以使用Pygment做语法高亮,格式是

{% highlight 语言代码 %}
Hello world!
{% endhighlight %}

所以需要这个语言代码,帮助里有,很臭很长,所以直接用R重新处理了一下。然后用Google Chart api弄了个表格,当然是用GoogleVis包弄的。嗯,下面就是格式和代号对应表了(更新:测试了一下pandoc包和Rstudio的表格功能,三种表格都贴上了):

HTML version table

 ShortNamesFileNames
1as3, actionscript3*.as
2as, actionscript*.as
3mxml*.mxml
4gap*.g, *.gd, *.gi, *.gap
5mathematica, mma, nb*.nb, *.cdf, *.nbp, *.ma
6mupad*.mu
7at, ambienttalk, ambienttalk/2*.at
8apl*.apl
9c-objdump*.c-objdump
10ca65*.s
11cpp-objdump, c++-objdumb, cxx-objdump*.cpp-objdump, *.c++-objdump, *.cxx-objdump
12d-objdump*.d-objdump
13gas, asm*.s, *.S
14llvm*.ll
15nasm*.asm, *.ASM
16objdump-nasm*.objdump-intel
17objdump*.objdump
18autoit*.au3
19ahk, autohotkey*.ahk, *.ahkl
20blitzbasic, b3d, bplus*.bb, *.decls
21blitzmax, bmax*.bmx
22cbmbas*.bas
23monkey*.monkey
24qbasic, basic*.BAS, *.bas
25abap*.abap
26cobolfree*.cbl, *.CBL
27cobol*.cob, *.COB, *.cpy, *.CPY
28gooddata-cl*.gdc
29maql*.maql
30openedge, abl, progress*.p, *.cls
31c*.c, *.h, *.idc
32cpp, c++*.cpp, *.hpp, *.c++, *.h++, *.cc, *.hh, *.cxx, *.hxx, *.C, *.H, *.cp, *.CPP
33clay*.clay
34cuda, cu*.cu, *.cuh
35ec*.ec, *.eh
36mql, mq4, mq5, mql4, mql5*.mq4, *.mq5, *.mqh
37nesc*.nc
38pike*.pike, *.pmod
39swig*.swg, *.i
40vala, vapi*.vala, *.vapi
41chapel, chpl*.chpl
42apacheconf, aconf, apache.htaccess, apache.conf, apache2.conf
43cfengine3, cf3*.cf
44docker, dockerfileDockerfile, *.docker
45ini, cfg, dosini*.ini, *.cfg
46kconfig, menuconfig, linux-config, kernel-configKconfig, *Config.in*, external.in*, standard-modules.in
49properties, jproperties*.properties
50registry*.reg
51squidconf, squid.conf, squidsquid.conf
52pypylog, pypy*.pypylog
54css*.css
55sass*.sass
56scss*.scss
57croc*.croc
58d*.d, *.di
60smali*.smali
61jsonld, json-ld*.jsonld
62json*.json
63yaml*.yaml, *.yml
64dpatch*.dpatch, *.darcspatch
65diff, udiff*.diff, *.patch
66boo*.boo
67aspx-cs*.aspx, *.asax, *.ascx, *.ashx, *.asmx, *.axd
68csharp, c#*.cs
69fsharp*.fs, *.fsi
70nemerle*.n
71aspx-vb*.aspx, *.asax, *.ascx, *.ashx, *.asmx, *.axd
72vb.net, vbnet*.vb, *.bas
73alloy*.als
74bro*.bro
75mscgen, msc*.msc
76pan*.pan
77protobuf, proto*.proto
78puppet*.pp
79rsl*.rsl
80vgl*.rpf
81dylan-console, dylan-repl*.dylan-console
82dylan*.dylan, *.dyl, *.intr
83dylan-lid, lid*.lid, *.hdp
84ecl*.ecl
85eiffel*.e
87elixir, ex, exs*.ex, *.exs
88erlang*.erl, *.hrl, *.es, *.escript
89erl*.erl-sh
90befunge*.befunge
91brainfuck, bf*.bf, *.b
92redcode*.cw
93factor*.factor
94fan*.fan
95felix, flx*.flx, *.flxh
96fortran*.f, *.f90, *.F, *.F90
97foxpro, vfp, clipper, xbase*.PRG, *.prg
98go*.go
99cypher*.cyp, *.cypher
100asy, asymptote*.asy
101glsl*.vert, *.frag, *.geo
102gnuplot*.plot, *.plt
103postscript, postscr*.ps, *.eps
104pov*.pov, *.inc
105agda*.agda
106cryptol, cry*.cry
107haskell, hs*.hs
108idris, idr*.idr
109koka*.kk, *.kki
110lagda, literate-agda*.lagda
111lcry, literate-cryptol, lcryptol*.lcry
112lhs, literate-haskell, lhaskell*.lhs
113lidr, literate-idris, lidris*.lidr
114hx, haxe, hxsl*.hx, *.hxsl
115haxeml, hxml*.hxml
116systemverilog, sv*.sv, *.svh
117verilog, v*.v
118vhdl*.vhdl, *.vhd
119dtd*.dtd
120haml*.haml
121html*.html, *.htm, *.xhtml, *.xslt
122jade*.jade
123scaml*.scaml
124xml*.xml, *.xsl, *.rss, *.xslt, *.xsd, *.wsdl, *.wsf
125xslt*.xsl, *.xslt, *.xpl
126idl*.pro
127igor, igorpro*.ipf
128limbo*.b
129control, debcontrolcontrol
130nsis, nsi, nsh*.nsi, *.nsh
131spec*.spec
132sourceslist, sources.list, debsourcessources.list
133inform6, i6*.inf
134i6t*.i6t
135inform7, i7*.ni, *.i7x
136tads3*.t
137io*.io
138coffee-script, coffeescript, coffee*.coffee
139dart*.dart
140js, javascript*.js
141kal*.kal
142lasso, lassoscript*.lasso, *.lasso[89]
143live-script, livescript*.ls
144mask*.mask
145objective-j, objectivej, obj-j, objj*.j
146ts*.ts
148julia, jl*.jl
149aspectj*.aj
150ceylon*.ceylon
151clojure, clj*.clj
152clojurescript, cljs*.cljs
153golo*.golo
154gosu*.gs, *.gsx, *.gsp, *.vark
155gst*.gst
156groovy*.groovy
157ioke, ik*.ik
158jasmin, jasminxt*.j
159java*.java
160kotlin*.kt
161pig*.pig
162scala*.scala
163xtend*.xtend
164common-lisp, cl, lisp, elisp, emacs, emacs-lisp*.cl, *.lisp, *.el
165hylang*.hy
166newlisp*.lsp, *.nl
167racket, rkt*.rkt, *.rktd, *.rktl
168scheme, scm*.scm, *.ss
170cmake*.cmake, CMakeLists.txt
171make, makefile, mf, bsdmake*.mak, *.mk, Makefile, makefile, Makefile.*, GNUmakefile
173groff, nroff, man*.[1234567], *.man
175css+mozpreproc*.css.in
177javascript+mozpreproc*.js.in
179xul+mozpreproc*.xul.in
180rst, rest, restructuredtext*.rst, *.rest
181tex, latex*.tex, *.aux, *.toc
182matlab*.m
184octave*.m
185scilab*.sci, *.sce, *.tst
186ocaml*.ml, *.mli, *.mll, *.mly
187opa*.opa
188sml*.sml, *.sig, *.fun
189bugs, winbugs, openbugs*.bug
190jags*.jag, *.bug
191modelica*.mo
192stan*.stan
193nimrod, nim*.nim, *.nimrod
194nit*.nit
195nixos, nix*.nix
196logos*.x, *.xi, *.xm, *.xmi
197objective-c, objectivec, obj-c, objc*.m, *.h
198objective-c++, objectivec++, obj-c++, objc++*.mm, *.hh
199swift*.swift
200ooc*.ooc
201antlr-as, antlr-actionscript*.G, *.g
202antlr-csharp, antlr-c#*.G, *.g
203antlr-cpp*.G, *.g
204antlr-java*.G, *.g
206antlr-objc*.G, *.g
207antlr-perl*.G, *.g
208antlr-python*.G, *.g
209antlr-ruby, antlr-rb*.G, *.g
210ebnf*.ebnf
211ragel-c*.rl
212ragel-cpp*.rl
213ragel-d*.rl
214ragel-em*.rl
215ragel-java*.rl
217ragel-objc*.rl
218ragel-ruby, ragel-rb*.rl
219treetop*.treetop, *.tt
220ada, ada95, ada2005*.adb, *.ads, *.ada
221delphi, pas, pascal, objectpascal*.pas
222modula2, m2*.def, *.mod
223pawn*.p, *.pwn, *.inc
224sp*.sp
225perl6, pl6*.pl, *.pm, *.nqp, *.p6, *.6pl, *.p6l, *.pl6, *.6pm, *.p6m, *.pm6, *.t
226perl, pl*.pl, *.pm, *.t
227php, php3, php4, php5*.php, *.php[345], *.inc
228zephir*.zep
229logtalk*.lgt, *.logtalk
230prolog*.ecl, *.prolog, *.pro, *.pl
231cython, pyx, pyrex*.pyx, *.pxd, *.pxi
232dg*.dg
235py3tb*.py3tb
237python, py, sage*.py, *.pyw, *.sc, SConstruct, SConscript, *.tac, *.sage
238pytb*.pytb
239rconsole, rout*.Rout
240rd*.Rd
241splus, s, r*.S, *.R, .Rhistory, .Rprofile, .Renviron
242sparql*.rq, *.sparql
243rebol*.r, *.r3, *.reb
244red, red/system*.red, *.reds
245resource, resourcebundle*.txt
246robotframework*.txt, *.robot
247fancy, fy*.fy, *.fancypack
249rb, ruby, duby*.rb, *.rbw, Rakefile, *.rake, *.gemspec, *.rbx, *.duby
250rust*.rs
251applescript*.applescript
252chai, chaiscript*.chai
253hybris, hy*.hy, *.hyb
254lsl*.lsl
255lua*.lua, *.wlua
256moocode, moo*.moo
257moon, moonscript*.moon
258rexx, arexx*.rexx, *.rex, *.rx, *.arexx
259bash, sh, ksh, shell*.sh, *.ksh, *.bash, *.ebuild, *.eclass, .bashrc, bashrc, .bash\*, bash\*, PKGBUILD
260console*.sh-session
261bat, batch, dosbatch, winbatch*.bat, *.cmd
262powershell, posh, ps1, psm1*.ps1, *.psm1
263shell-session*.shell-session
264tcsh, csh*.tcsh, *.csh
265newspeak*.ns2
266smalltalk, squeak, st*.st
267snobol*.snobol
269text*.txt
274rql*.rql
275sql*.sql
276sqlite3*.sqlite3-console
277tcl*.tcl, *.rvt
280cheetah, spitfire*.tmpl, *.spt
282cfc*.cfc
283cfm*.cfm, *.cfml
292html+evoque*.html
293evoque*.evoque
294xml+evoque*.xml
295genshi, kid, xml+genshi, xml+kid*.kid
297html+handlebars*.handlebars, *.hbs
301html+php*.phtml
308jsp*.jsp
313liquid*.liquid
317mako*.mao
319mason*.m, *.mhtml, *.mc, *.mi, autohandler, dhandler
323myghty*.myt, autodelegate
325rhtml, html+erb, html+ruby*.rhtml
326smarty*.tpl
327ssp*.ssp
328tea*.tea
329html+twig*.twig
332velocity*.vm, *.fhtml
338yaml+jinja, salt, sls*.sls
339cucumber, gherkin*.feature
340awk, gawk, mawk, nawk*.awk
341vim*.vim, .vimrc, .exrc, .gvimrc, vimrc, exrc, gvimrc, vimrc, gvimrc
342pot, po*.pot, *.po
344irc*.weechatlog
345todotxttodo.txt, *.todotxt
346coq*.v
347isabelle*.thy
348lean*.lean
349urbiscript*.u
350cirru*.cirru
351duel, jbst, jsonml+bst*.duel, *.jbst
352qml*.qml
353slim*.slim
354xquery, xqy, xq, xql, xqm*.xqy, *.xquery, *.xq, *.xql, *.xqm

Markdown version table

  ShortNames FileNames
1 as3, actionscript3 *.as
2 as, actionscript *.as
3 mxml *.mxml
4 gap *.g, *.gd, *.gi, *.gap
5 mathematica, mma, nb *.nb, *.cdf, *.nbp, *.ma
6 mupad *.mu
7 at, ambienttalk, ambienttalk/2 *.at
8 apl *.apl
9 c-objdump *.c-objdump
10 ca65 *.s
11 cpp-objdump, c++-objdumb, cxx-objdump *.cpp-objdump, *.c++-objdump, *.cxx-objdump
12 d-objdump *.d-objdump
13 gas, asm *.s, *.S
14 llvm *.ll
15 nasm *.asm, *.ASM
16 objdump-nasm *.objdump-intel
17 objdump *.objdump
18 autoit *.au3
19 ahk, autohotkey *.ahk, *.ahkl
20 blitzbasic, b3d, bplus *.bb, *.decls
21 blitzmax, bmax *.bmx
22 cbmbas *.bas
23 monkey *.monkey
24 qbasic, basic *.BAS, *.bas
25 abap *.abap
26 cobolfree *.cbl, *.CBL
27 cobol *.cob, *.COB, *.cpy, *.CPY
28 gooddata-cl *.gdc
29 maql *.maql
30 openedge, abl, progress *.p, *.cls
31 c *.c, *.h, *.idc
32 cpp, c++ *.cpp, *.hpp, *.c++, *.h++, *.cc, *.hh, *.cxx, *.hxx, *.C, *.H, *.cp, *.CPP
33 clay *.clay
34 cuda, cu *.cu, *.cuh
35 ec *.ec, *.eh
36 mql, mq4, mq5, mql4, mql5 *.mq4, *.mq5, *.mqh
37 nesc *.nc
38 pike *.pike, *.pmod
39 swig *.swg, *.i
40 vala, vapi *.vala, *.vapi
41 chapel, chpl *.chpl
42 apacheconf, aconf, apache .htaccess, apache.conf, apache2.conf
43 cfengine3, cf3 *.cf
44 docker, dockerfile Dockerfile, *.docker
45 ini, cfg, dosini *.ini, *.cfg
46 kconfig, menuconfig, linux-config, kernel-config Kconfig, Config.in, external.in*, standard-modules.in
49 properties, jproperties *.properties
50 registry *.reg
51 squidconf, squid.conf, squid squid.conf
52 pypylog, pypy *.pypylog
54 css *.css
55 sass *.sass
56 scss *.scss
57 croc *.croc
58 d *.d, *.di
60 smali *.smali
61 jsonld, json-ld *.jsonld
62 json *.json
63 yaml *.yaml, *.yml
64 dpatch *.dpatch, *.darcspatch
65 diff, udiff *.diff, *.patch
66 boo *.boo
67 aspx-cs *.aspx, *.asax, *.ascx, *.ashx, *.asmx, *.axd
68 csharp, c# *.cs
69 fsharp *.fs, *.fsi
70 nemerle *.n
71 aspx-vb *.aspx, *.asax, *.ascx, *.ashx, *.asmx, *.axd
72 vb.net, vbnet *.vb, *.bas
73 alloy *.als
74 bro *.bro
75 mscgen, msc *.msc
76 pan *.pan
77 protobuf, proto *.proto
78 puppet *.pp
79 rsl *.rsl
80 vgl *.rpf
81 dylan-console, dylan-repl *.dylan-console
82 dylan *.dylan, *.dyl, *.intr
83 dylan-lid, lid *.lid, *.hdp
84 ecl *.ecl
85 eiffel *.e
87 elixir, ex, exs *.ex, *.exs
88 erlang *.erl, *.hrl, *.es, *.escript
89 erl *.erl-sh
90 befunge *.befunge
91 brainfuck, bf *.bf, *.b
92 redcode *.cw
93 factor *.factor
94 fan *.fan
95 felix, flx *.flx, *.flxh
96 fortran *.f, *.f90, *.F, *.F90
97 foxpro, vfp, clipper, xbase *.PRG, *.prg
98 go *.go
99 cypher *.cyp, *.cypher
100 asy, asymptote *.asy
101 glsl *.vert, *.frag, *.geo
102 gnuplot *.plot, *.plt
103 postscript, postscr *.ps, *.eps
104 pov *.pov, *.inc
105 agda *.agda
106 cryptol, cry *.cry
107 haskell, hs *.hs
108 idris, idr *.idr
109 koka *.kk, *.kki
110 lagda, literate-agda *.lagda
111 lcry, literate-cryptol, lcryptol *.lcry
112 lhs, literate-haskell, lhaskell *.lhs
113 lidr, literate-idris, lidris *.lidr
114 hx, haxe, hxsl *.hx, *.hxsl
115 haxeml, hxml *.hxml
116 systemverilog, sv *.sv, *.svh
117 verilog, v *.v
118 vhdl *.vhdl, *.vhd
119 dtd *.dtd
120 haml *.haml
121 html *.html, *.htm, *.xhtml, *.xslt
122 jade *.jade
123 scaml *.scaml
124 xml *.xml, *.xsl, *.rss, *.xslt, *.xsd, *.wsdl, *.wsf
125 xslt *.xsl, *.xslt, *.xpl
126 idl *.pro
127 igor, igorpro *.ipf
128 limbo *.b
129 control, debcontrol control
130 nsis, nsi, nsh *.nsi, *.nsh
131 spec *.spec
132 sourceslist, sources.list, debsources sources.list
133 inform6, i6 *.inf
134 i6t *.i6t
135 inform7, i7 *.ni, *.i7x
136 tads3 *.t
137 io *.io
138 coffee-script, coffeescript, coffee *.coffee
139 dart *.dart
140 js, javascript *.js
141 kal *.kal
142 lasso, lassoscript *.lasso, *.lasso[89]
143 live-script, livescript *.ls
144 mask *.mask
145 objective-j, objectivej, obj-j, objj *.j
146 ts *.ts
148 julia, jl *.jl
149 aspectj *.aj
150 ceylon *.ceylon
151 clojure, clj *.clj
152 clojurescript, cljs *.cljs
153 golo *.golo
154 gosu *.gs, *.gsx, *.gsp, *.vark
155 gst *.gst
156 groovy *.groovy
157 ioke, ik *.ik
158 jasmin, jasminxt *.j
159 java *.java
160 kotlin *.kt
161 pig *.pig
162 scala *.scala
163 xtend *.xtend
164 common-lisp, cl, lisp, elisp, emacs, emacs-lisp *.cl, *.lisp, *.el
165 hylang *.hy
166 newlisp *.lsp, *.nl
167 racket, rkt *.rkt, *.rktd, *.rktl
168 scheme, scm *.scm, *.ss
170 cmake *.cmake, CMakeLists.txt
171 make, makefile, mf, bsdmake .mak, *.mk, Makefile, makefile, Makefile., GNUmakefile
173 groff, nroff, man *.[1234567], *.man
175 css+mozpreproc *.css.in
177 javascript+mozpreproc *.js.in
179 xul+mozpreproc *.xul.in
180 rst, rest, restructuredtext *.rst, *.rest
181 tex, latex *.tex, *.aux, *.toc
182 matlab *.m
184 octave *.m
185 scilab *.sci, *.sce, *.tst
186 ocaml *.ml, *.mli, *.mll, *.mly
187 opa *.opa
188 sml *.sml, *.sig, *.fun
189 bugs, winbugs, openbugs *.bug
190 jags *.jag, *.bug
191 modelica *.mo
192 stan *.stan
193 nimrod, nim *.nim, *.nimrod
194 nit *.nit
195 nixos, nix *.nix
196 logos *.x, *.xi, *.xm, *.xmi
197 objective-c, objectivec, obj-c, objc *.m, *.h
198 objective-c++, objectivec++, obj-c++, objc++ *.mm, *.hh
199 swift *.swift
200 ooc *.ooc
201 antlr-as, antlr-actionscript *.G, *.g
202 antlr-csharp, antlr-c# *.G, *.g
203 antlr-cpp *.G, *.g
204 antlr-java *.G, *.g
206 antlr-objc *.G, *.g
207 antlr-perl *.G, *.g
208 antlr-python *.G, *.g
209 antlr-ruby, antlr-rb *.G, *.g
210 ebnf *.ebnf
211 ragel-c *.rl
212 ragel-cpp *.rl
213 ragel-d *.rl
214 ragel-em *.rl
215 ragel-java *.rl
217 ragel-objc *.rl
218 ragel-ruby, ragel-rb *.rl
219 treetop *.treetop, *.tt
220 ada, ada95, ada2005 *.adb, *.ads, *.ada
221 delphi, pas, pascal, objectpascal *.pas
222 modula2, m2 *.def, *.mod
223 pawn *.p, *.pwn, *.inc
224 sp *.sp
225 perl6, pl6 *.pl, *.pm, *.nqp, *.p6, *.6pl, *.p6l, *.pl6, *.6pm, *.p6m, *.pm6, *.t
226 perl, pl *.pl, *.pm, *.t
227 php, php3, php4, php5 *.php, *.php[345], *.inc
228 zephir *.zep
229 logtalk *.lgt, *.logtalk
230 prolog *.ecl, *.prolog, *.pro, *.pl
231 cython, pyx, pyrex *.pyx, *.pxd, *.pxi
232 dg *.dg
235 py3tb *.py3tb
237 python, py, sage *.py, *.pyw, *.sc, SConstruct, SConscript, *.tac, *.sage
238 pytb *.pytb
239 rconsole, rout *.Rout
240 rd *.Rd
241 splus, s, r *.S, *.R, .Rhistory, .Rprofile, .Renviron
242 sparql *.rq, *.sparql
243 rebol *.r, *.r3, *.reb
244 red, red/system *.red, *.reds
245 resource, resourcebundle *.txt
246 robotframework *.txt, *.robot
247 fancy, fy *.fy, *.fancypack
249 rb, ruby, duby *.rb, *.rbw, Rakefile, *.rake, *.gemspec, *.rbx, *.duby
250 rust *.rs
251 applescript *.applescript
252 chai, chaiscript *.chai
253 hybris, hy *.hy, *.hyb
254 lsl *.lsl
255 lua *.lua, *.wlua
256 moocode, moo *.moo
257 moon, moonscript *.moon
258 rexx, arexx *.rexx, *.rex, *.rx, *.arexx
259 bash, sh, ksh, shell *.sh, *.ksh, *.bash, *.ebuild, *.eclass, .bashrc, bashrc, .bash*, bash*, PKGBUILD
260 console *.sh-session
261 bat, batch, dosbatch, winbatch *.bat, *.cmd
262 powershell, posh, ps1, psm1 *.ps1, *.psm1
263 shell-session *.shell-session
264 tcsh, csh *.tcsh, *.csh
265 newspeak *.ns2
266 smalltalk, squeak, st *.st
267 snobol *.snobol
269 text *.txt
274 rql *.rql
275 sql *.sql
276 sqlite3 *.sqlite3-console
277 tcl *.tcl, *.rvt
280 cheetah, spitfire *.tmpl, *.spt
282 cfc *.cfc
283 cfm *.cfm, *.cfml
292 html+evoque *.html
293 evoque *.evoque
294 xml+evoque *.xml
295 genshi, kid, xml+genshi, xml+kid *.kid
297 html+handlebars *.handlebars, *.hbs
301 html+php *.phtml
308 jsp *.jsp
313 liquid *.liquid
317 mako *.mao
319 mason *.m, *.mhtml, *.mc, *.mi, autohandler, dhandler
323 myghty *.myt, autodelegate
325 rhtml, html+erb, html+ruby *.rhtml
326 smarty *.tpl
327 ssp *.ssp
328 tea *.tea
329 html+twig *.twig
332 velocity *.vm, *.fhtml
338 yaml+jinja, salt, sls *.sls
339 cucumber, gherkin *.feature
340 awk, gawk, mawk, nawk *.awk
341 vim *.vim, .vimrc, .exrc, .gvimrc, vimrc, exrc, gvimrc, vimrc, gvimrc
342 pot, po *.pot, *.po
344 irc *.weechatlog
345 todotxt todo.txt, *.todotxt
346 coq *.v
347 isabelle *.thy
348 lean *.lean
349 urbiscript *.u
350 cirru *.cirru
351 duel, jbst, jsonml+bst *.duel, *.jbst
352 qml *.qml
353 slim *.slim
354 xquery, xqy, xq, xql, xqm *.xqy, *.xquery, *.xq, *.xql, *.xqm

Google Chart Version:

亲,给点评论吧!