hexo程式碼高亮

閏土月下追猹發表於2020-11-27

開啟程式碼高亮

配置檔案中有開啟程式碼高亮的配置項

寫法

關於語言型別怎麼寫?

hexomarkdown語法高亮使用的是highlight.js,可以參考highlight.js文件

???????????????????????????

1C1c
ABNFabnf
Access logsaccesslog
Adaada
ARM assemblerarmasm, arm
AVR assembleravrasm
ActionScriptactionscript, as
Apacheapache, apacheconf
AppleScriptapplescript, osascript
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鈥檔 Protocapnproto, capnp
Clojureclojure, clj
CoffeeScriptcoffeescript, coffee, cson, iced
Crmshcrmsh, crm, pcmk
Crystalcrystal, cr
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
EBNFebnf
Elixirelixir
Elmelm
Erlangerlang, erl
Excelexcel, xls, xlsx
F#fsharp, fs
FIXfix
Fortranfortran, f90, f95
G-Codegcode, nc
Gamsgams, gms
GAUSSgauss, gss
Gherkingherkin
Gogo, golang
Gologolo, gololang
Gradlegradle
Groovygroovy
HTML, XMLxml, html, xhtml, rss, atom, xjb, xsd, xsl, plist
HTTPhttp, https
Hamlhaml
Handlebarshandlebars, hbs, html.hbs, html.handlebars
Haskellhaskell, hs
Haxehaxe, hx
Hyhy, hylang
Iniini
Inform7inform7, i7
IRPF90irpf90
JSONjson
Javajava, jsp
JavaScriptjavascript, js, jsx
Leafleaf
Lassolasso, ls, lassoscript
Lessless
LDIFldif
Lisplisp
LiveCode Serverlivecodeserver
LiveScriptlivescript, ls
Lualua
Makefilemakefile, mk, mak
Markdownmarkdown, md, mkdown, mkd
Mathematicamathematica, mma
Matlabmatlab
Maximamaxima
Maya Embedded Languagemel
Mercurymercury
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
Ponypony
PowerShellpowershell, ps
Processingprocessing
Prologprolog
Protocol Buffersprotobuf
Puppetpuppet, pp
Pythonpython, py, gyp
Python profiler resultsprofile
Qk, kdb
QMLqml
Rr
RenderMan RIBrib
RenderMan RSLrsl
Roboconfgraph, instances
Rubyruby, rb, gemspec, podspec, thor, irb
Rustrust, rs
SCSSscss
SQLsql
STEP Part 21p21, step, stp
Scalascala
Schemescheme
Scilabscilab, sci
Shellshell, console
Smalismali
Smalltalksmalltalk, st
Stanstan
Statastata
Stylusstylus, styl
SubUnitsubunit
Swiftswift
Test Anything Protocoltap
Tcltcl, tk
TeXtex
Thriftthrift
TPtp
Twigtwig, craftcms
TypeScripttypescript, ts
VB.Netvbnet, vb
VBScriptvbscript, vbs
VHDLvhdl
Valavala
Verilogverilog, v
Vim Scriptvim
x86 Assemblyx86asm
XLxl, tao
XQueryxpath, xq
Zephirzephir, zep

相關文章