突出的bash /壳code在降价 [英] Highlight bash/shell code in markdown

查看:80
本文介绍了突出的bash /壳code在降价的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何突出降价文件在bash / shell命令?

How to highlight the bash/shell commands in markdown files?

例如突出 JS 我写的:

```js
function () { return "This code is highlighted as Javascript!"}
```

要突出HTML code我用```HTML

To highlight HTML code I use ```html.

我们怎样才能突出的bash / shell命令?

How can we highlight bash/shell commands?

推荐答案

依赖于降价的渲染引擎和降价的味道。还有就是这个没有标准。如果你的意思是github上例如调味降价,应该可以正常工作。别名是 SH 庆典的zsh 。你可以找到可用的语法列表词法分析器这里

Depends on the markdown rendering engine and the markdown flavour. There is no standard for this. If you mean github flavoured markdown for example, shell should work fine. Aliases are sh, bash or zsh. You can find the list of available syntax lexers here

这篇关于突出的bash /壳code在降价的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆