I am using Bookdown and Rmarkdown to compose a technical book for Stata users. I would like to include Stata highlighting syntax in the chunks of code, but I am not interested in actually executing Stata from Rstudio. I just want the syntax highlighting.
I learned here that it is possible to use highlightjs but I have no idea how to include it in my .Rmd files.
I would like to be able to include something like the following and get it syntax highlighted.
```stata
sysuse auto, clear
reg mpg length
```
I highly appreciate your help. Thanks.