r - Including git code in the rmarkdown documents while using bookdown -
is there way possible include code different languages in rmarkdown documents while authoring books using bookdown package? have looked @ knitr option engine possible values python, awk/gawk , executable path can set using engine.path.
```{r, engine='python'} print "will code chunk hidden?" ``` however, insert code (eg: git) in rmarkdown document without executing it.
for example, including in markdown documents
```git git init ```
if don't want code executed, can embed like:
``` code not executed ``` you can have code highlighting in specific languages:
```css my_css{} ``` for git command, execution terminal, can highlight with:
```sh git init ```
Comments
Post a Comment