--- title: "R Markdown with Alternate Languages" author: "Curtis Alexander" output: html_document: include: in_header: header.html mathjax: null params: hilang: - sas - crystal --- The purpose of this document is to demonstrate that an R Markdown document can display syntax highlighting for languages that are not supported natively by R Markdown. Highlighting is actually supported by [pandoc](https://pandoc.org/) and the [skylighting](https://hackage.haskell.org/package/skylighting) Haskell library. A full list of languages supported by pandoc can be found [here](https://github.com/jgm/skylighting/tree/master/xml). The original reason for working through this was to enable [SAS](https://www.sas.com) syntax highlighting within an R Markdown html document. For a full description of how this is accomplished and stitched together, refer to my [blog post](https://www.calex.org/blog/r-markdown-syntax-highlighting/). ## Requirements The following R packages are required for the proposed solution. * [stringr](https://cran.r-project.org/web/packages/stringr/index.html) * [htmltools](https://cran.r-project.org/web/packages/htmltools/) In addition, one will need access to the internet as the solution makes use of `