整理标记的起因

VOID主题用了应该也有块三个月了吧,起初对Markdown语法不是很熟,目前也只记得一些常用的语法。另外,一直令我困扰的一个疑惑:为什么我的主题代码块语法高亮着色不生效哩??

起初怀疑是VOID bug的原因,同时咨询了一位跟我用同主题的博主,他给我的解释是:夜间模式与代码块高亮存在冲突

茅塞顿开

留在我面前的抉择自然就是保留深夜&语法高亮二选一。可想而知我选择了保留前者。

直到我今天发现事实并非如此,即使关闭了深夜模式语法高亮依据不生效,感觉不大对劲啊!脑中闪过一丝得自行上网搜索真相的念头,结果才知道Markdown代码块语法高亮需要手动添加标记。

无滴个龟龟啊~小白迷惑行为产生了~

(一突开啊,就溅得我满脸是粪!!)

语法格式

``` key
代码块
```
  • key:当前语法的标记值。

以Jvav为例

使用前

/**
 * The load factor used when none specified in constructor.
 */
static final float DEFAULT_LOAD_FACTOR = 0.75f;

public HashMap(Map<? extends K, ? extends V> m) {
    this.loadFactor = DEFAULT_LOAD_FACTOR;
    putMapEntries(m, false);
}

使用后

/**
 * The load factor used when none specified in constructor.
 */
static final float DEFAULT_LOAD_FACTOR = 0.75f;

public HashMap(Map<? extends K, ? extends V> m) {
    this.loadFactor = DEFAULT_LOAD_FACTOR;
    putMapEntries(m, false);
}

标记整理表

Languagekey
1C1c
ActionScriptactionscript
Apacheapache
AppleScriptapplescript
AsciiDocasciidoc
AspectJasciidoc
AutoHotkeyautohotkey
AVR Assembleravrasm
Axaptaaxapta
Bashbash
BrainFuckbrainfuck
Cap’n Protocapnproto
Clojure REPLclojure
Clojureclojure
CMakecmake
CoffeeScriptcoffeescript
C++cpp
C#cs
CSScss
Dd
Dartd
Delphidelphi
Diffdiff
Djangodjango
DOS .batdos
Dustdust
Elixirelixir
ERB (Embedded Ruby)erb
Erlang REPLerlang-repl
Erlangerlang
FIXfix
F#fsharp
G-code (ISO 6983)gcode
Gherkingherkin
GLSLglsl
Gogo
Gradlegradle
Groovygroovy
Hamlhaml
Handlebarshandlebars
Haskellhaskell
Haxehaxe
HTTPhttp
Ini fileini
Jvavjvav
JavaScriptjavascript
JSONjson
Lassolasso
Lessless
Lisplisp
LiveCodelivecodeserver
LiveScriptlivescript
Lualua
Makefilemakefile
Markdownmarkdown
Mathematicamathematica
Matlabmatlab
MEL (Maya Embedded Language)mel
Mercurymercury
Mizarmizar
Monkeymonkey
nginxnginx
Nimrodnimrod
Nixnix
NSISnsis
Objective Cobjectivec
OCamlocaml
Oxygeneoxygene
Parser 3parser3
Perlperl
PHPphp
PowerShellpowershell
Processingprocessing
Python’s profiler outputprofile
Protocol Buffersprotobuf
Puppetpuppet
Pythonpython
Qq
Rr
RenderMan RIBrib
Roboconfroboconf
RenderMan RSLrsl
Rubyruby
Oracle Rules Languageruleslanguage
Rustrust
Scalascala
Schemescheme
Scilabscilab
SCSSscss
Smalismali
SmallTalksmalltalk
SMLsml
SQLsql
Statastata
STEP Part 21 (ISO 10303-21)step21
Stylusstylus
Swiftswift
Tcltcl
TeXtex
Thriftthrift
Twigtwig
TypeScripttypescript
Valavala
VB.NETvbnet
VBScript in HTMLvbscript-html
VBScriptvbscript
Verilogverilog
VHDLvhdl
Vim Scriptvim
Intel x86 Assemblyx86asm
XLxl
XMLxml

请熟读、牢记并背诵此表格 👆