Digital Marketing

How to highlight bash/shell code in markdown

For 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.
Or using the knitr package: ```{r, engine='bash'} ... i.e.

```{r, engine='bash'}
$ id -nG i88ca
```
The result is:
$ id -nG i88ca

Comments

Popular posts from this blog

MySQL Sandbox with the Sakila sample database