[highlight.js]でclass要素に指定する言語名の一覧

資料
こちらもどうぞ

<pre class=”XXXX“></pre>で使用できる言語

ワードプレス等でもよく使われている[highlight.js]の要素。

ソースコードをハイライトできる機能です。

ワードプレス(WordPress) テーマ:Cocoon [Cocoon 設定]-[コード]タブ

 

現時点(2019/11/28)での資料です。

LanguageClassesPackage
1C1c
ABNFabnf
Access logsaccesslog
Adaada
ARM assemblerarmasm, arm
AVR assembleravrasm
ActionScriptactionscript, as
Alanalan, ihighlightjs-alan
AngelScriptangelscript, asc
Apacheapache, apacheconf
AppleScriptapplescript, osascript
Arcadearcade
AsciiDocasciidoc, adoc
AspectJaspectj
AutoHotkeyautohotkey
AutoItautoit
Awkawk, mawk, nawk, gawk
Axaptaaxapta
Bashbash, sh, zsh
Basicbasic
BNFbnf
Brainfuckbrainfuck, bf
C#cs, csharp
C++cpp, c, cc, h, c++, h++, hpp
C/ALcal
Cache Object Scriptcos, cls
CMakecmake, cmake.in
Coqcoq
CSPcsp
CSScss
Cap’n Protocapnproto, capnp
Clojureclojure, clj
CoffeeScriptcoffeescript, coffee, cson, iced
Crmshcrmsh, crm, pcmk
Crystalcrystal, cr
Cypher (Neo4j)cypherhighlightjs-cypher
Dd
DNS Zone filedns, zone, bind
DOSdos, bat, cmd
Dartdart
Delphidelphi, dpr, dfm, pas, pascal, freepascal, lazarus, lpr, lfm
Diffdiff, patch
Djangodjango, jinja
Dockerfiledockerfile, docker
dsconfigdsconfig
DTS (Device Tree)dts
Dustdust, dst
Dylandylanhighlight-dylan
EBNFebnf
Elixirelixir
Elmelm
Erlangerlang, erl
Excelexcel, xls, xlsx
Extemporeextempore, xtlang, xtmhighlightjs-xtlang
F#fsharp, fs
FIXfix
Fortranfortran, f90, f95
G-Codegcode, nc
Gamsgams, gms
GAUSSgauss, gss
GDScriptgodot, gdscripthighlightjs-gdscript
Gherkingherkin
GN for Ninjagn, gnihighlightjs-GN
Gogo, golang
Gologolo, gololang
Gradlegradle
Groovygroovy
HTML, XMLxml, html, xhtml, rss, atom, xjb, xsd, xsl, plist, svg
HTTPhttp, https
Hamlhaml
Handlebarshandlebars, hbs, html.hbs, html.handlebars
Haskellhaskell, hs
Haxehaxe, hx
Hyhy, hylang
Ini, TOMLini, toml
Inform7inform7, i7
IRPF90irpf90
JSONjson
Javajava, jsp
JavaScriptjavascript, js, jsx
Kotlinkotlin, kt
Leafleaf
Lassolasso, ls, lassoscript
Lessless
LDIFldif
Lisplisp
LiveCode Serverlivecodeserver
LiveScriptlivescript, ls
Lualua
Makefilemakefile, mk, mak
Markdownmarkdown, md, mkdown, mkd
Mathematicamathematica, mma, wl
Matlabmatlab
Maximamaxima
Maya Embedded Languagemel
Mercurymercury
mIRC Scripting Languagemirc, mrchighlightjs-mirc
Mizarmizar
Mojoliciousmojolicious
Monkeymonkey
Moonscriptmoonscript, moon
N1QLn1ql
NSISnsis
Nginxnginx, nginxconf
Nimrodnimrod, nim
Nixnix
OCamlocaml, ml
Objective Cobjectivec, mm, objc, obj-c
OpenGL Shading Languageglsl
OpenSCADopenscad, scad
Oracle Rules Languageruleslanguage
Oxygeneoxygene
PFpf, pf.conf
PHPphp, php3, php4, php5, php6
Parser3parser3
Perlperl, pl, pm
Plaintext: no highlightplaintext
Ponypony
PostgreSQL & PL/pgSQLpgsql, postgres, postgresql
PowerShellpowershell, ps, ps1
Processingprocessing
Prologprolog
Propertiesproperties
Protocol Buffersprotobuf
Puppetpuppet, pp
Pythonpython, py, gyp
Python profiler resultsprofile
Qk, kdb
QMLqml
Rr
Razor CSHTMLcshtml, razor, razor-cshtmlhighlightjs-cshtml-razor
ReasonMLreasonml, re
RenderMan RIBrib
RenderMan RSLrsl
Roboconfgraph, instances
Robot Frameworkrobot, rfhighlightjs-robot
RPM spec filesrpm-specfile, rpm, spec, rpm-spec, specfilehighlightjs-rpm-specfile
Rubyruby, rb, gemspec, podspec, thor, irb
Rustrust, rs
SASSAS, sas
SCSSscss
SQLsql
STEP Part 21p21, step, stp
Scalascala
Schemescheme
Scilabscilab, sci
Shape Expressionsshexchighlightjs-shexc
Shellshell, console
Smalismali
Smalltalksmalltalk, st
Soliditysolidity, solhighlightjs-solidity
Stanstan
Statastata
Structured Textiecst, scl, stl, structured-texthighlightjs-structured-text
Stylusstylus, styl
SubUnitsubunit
Supercollidersupercollider, schighlightjs-supercollider
Swiftswift
Tcltcl, tk
Terraform (HCL)terraform, tf, hclhighlightjs-terraform
Test Anything Protocoltap
TeXtex
Thriftthrift
TPtp
Twigtwig, craftcms
TypeScripttypescript, ts
VB.Netvbnet, vb
VBScriptvbscript, vbs
VHDLvhdl
Valavala
Verilogverilog, v
Vim Scriptvim
x86 Assemblyx86asm
XLxl, tao
XQueryxquery, xpath, xq
YAMLyml, yaml
Zephirzephir, zep
こちらもどうぞ

スタイルのデモページ

[highlight.js]のスタイル指定のデモページリンク

highlight.js demo

 

タイトルとURLをコピーしました