latex inline code highlighting code example Example: latex code highlighting r \usepackage{minted} \begin{minted}{R} x <- c(1,2,3,4,5) \end{minted}