

【Markdown】Shell命令高亮显示
source link: https://www.jianshu.com/p/05c41cf1a7c4
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

【Markdown】Shell命令高亮显示
【问题】shell命令,黏贴到简书的代码块上,#后面的命令显示成被注释掉的效果

【目的】高亮显示shell命令
【方案1】在代码块标示符后,加上此代码块所用的语言名(请注意要用小写)

【方案2】在代码块标示符后,加上其它语言名,直到高亮效果满足需要

【扩展】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
Recommend
-
68
website upgrading… 京ICP备110065...
-
72
苹果发布 iOS 12.1 beta 2 测试系统更新,带来全新的 70 多个 Emoji 表情符号。同时苹果也通过 Newsroom 频道与大众提前分享了这些新增的表情符号。
-
45
前言 我的前言都是良心话,还是姑且看一下吧: 别人一看这个标题,心想,“怎么又是一个老到掉牙的需求,网上一搜一大堆解决方案啦!”。没错!这个需求实在老土得不能再老土了,我真不想写这样一种需求的文章,无奈!无奈! 现实的情况是我想这么旧的需求网上资料一...
-
70
这两天在开始做 Golang 的实战课程,课程内容基本上规划得差不多了,现在在开始做 PPT 内容,但是做出的 PPT 内容始终感觉有点丑陋,特别是有时候需要或多或少的在 PPT 中展示下代码的时候,直接截图效果也不是很有好。于是一通查找在 ke...
-
30
HaE - 信息高亮与提取者 前言 HaE(Highlight and Extractor),是基于MarkINFO插件(地址:https://github.com/gh0stkey/BurpSuite-Extender-MarkInfo )的基础进行重构。 用处: 高亮...
-
3
by zhangxinxu from http://www.zhangxinxu.com 本文地址:http://www.zhangxinxu.com/wordpress/?p=1883
-
8
vim增加markdown语法高亮支持markdown是一种非常简洁美观的语法格式,非常适合用来撰写博客(简书 语法简介)。在linux下,我个人最习惯用vim做文本编辑器。那么,如何使vim支持markdown的语法高亮...
-
6
markdown笔记:公式插入和代码高亮 发表于 2019-09-15 | 更新于: 2020-02-15 | 分类于 操作和使用 |
-
6
有什么办法可以不显示高亮的边框吗? - V2EX V2EX = way to explore V2EX 是一个关于分享和探索的地方
-
24
0423 - ChatGPT 小网站支持代码高亮显示 ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK