【Markdown】Shell命令高亮显示

【问题】shell命令,黏贴到的代码块上,#后面的命令显示成被注释掉的效果
【Markdown】Shell命令高亮显示_第1张图片
image.png
【目的】高亮显示shell命令
【方案1】在代码块标示符后,加上此代码块所用的语言名(请注意要用小写)
【Markdown】Shell命令高亮显示_第2张图片
image.png
【方案2】在代码块标示符后,加上其它语言名,直到高亮效果满足需要
【Markdown】Shell命令高亮显示_第3张图片
image.png
【扩展】Markdown代码段书写规范
     ```key
      代码段
     ``` 
language key
C c
ActionScript actionscript
Apache apache
AppleScript applescript
AsciiDoc asciidoc
AspectJ asciidoc
AutoHotkey autohotkey
AVR Assembler avrasm
Axapta axapta
Bash bash
BrainFuck brainfuck
Cap’n Proto capnproto
Clojure REPL clojure
Clojure clojure
CMake cmake
CoffeeScript coffeescript
C++ cpp
C# cs
CSS css
D d
Dart d
Delphi delphi
Diff diff
Django django
DOS.bat dos
Dust dust
Elixir elixir
ERB(Embedded Ruby) erb
Erlang REPL erlang-repl
Erlang erlang
FIX fix
F# fsharp
G-code(ISO 6983) gcode
Gherkin gherkin
GLSL glsl
Go go
Gradle gradle
Groovy groovy
Haml haml
Handlebars handlebars
Haskell haskell
Haxe haxe
HTML html
HTTP http
Ini file ini
Java java
JavaScript javascript
JSON json
Lasso lasso
Less less
Lisp lisp
LiveCode livecodeserver
LiveScript livescript
Lua lua
Makefile makefile
Markdown markdown
Mathematica mathematica
Matlab matlab
MEL (Maya Embedded Language) mel
Mercury mercury
Mizar mizar
Monkey monkey
Nginx nginx
Nimrod nimrod
Nix nix
NSIS nsis
Objective C objectivec
OCaml ocaml
Oxygene oxygene
Parser 3 parser3
Perl perl
PHP php
PowerShell powershell
Processing processing
Python’s profiler output profile
Protocol Buffers protobuf
Puppet puppet
Python python
Q q
R r
RenderMan RIB rib
Roboconf roboconf
RenderMan RSL rsl
Ruby ruby
Oracle Rules Language ruleslanguage
Rust rust
Scala scala
Scheme scheme
Scilab scilab
SCSS scss
Smali smali
SmallTalk smalltalk
SML sml
SQL sql
Stata stata
STEP Part21(ISO 10303-21) step21
Stylus stylus
Swift swift
Tcl tcl
Tex tex
text text/plain
Thrift thrift
Twig twig
TypeScript typescript
Vala vala
VB.NET vbnet
VBScript in HTML vbscript-html
VBScript vbscript
Verilog verilog
VHDL vhdl
Vim Script vim
Intel x86 Assembly x86asm
XL xl
XML xml
YAML yml

来源:CSDN
原文:https://blog.csdn.net/u012102104/article/details/78950290

你可能感兴趣的:(【Markdown】Shell命令高亮显示)