Test

Default to text highlight

No specific highlight

Markdown output

```{verbatim, lang = 'markdown'} No specific highlight

# No highlight specifically

````{verbatim, lang = ''}
No specific highlight
````

# Use for verbatim Rmd content

````{verbatim, lang = 'markdown'}
We can output arbitrary content verbatim.

```r
1 + 1

The content can contain inline code like r pi * 5^2, too.

# Other option to set the language 

````{verbatim, engine.opts = list(lang = "javascript")}
document.getElementById("demo").innerHTML = "Hello JavaScript!";

Setting a language and another class

```{verbatim, lang = "python", class.source = "numberLines"} print(1 + 1)

```{verbatim, engine.opts = list(lang = "python"), class.source = "numberLines"}
print(1 + 1)

Content can be read from a file

```{cat, engine.opts = list(file = "style.css"), echo = FALSE} h1 { color: red; }

but no language is set by default from the file name

```{verbatim, file = "style.css"}

```{verbatim, file = "style.css", lang = "css"}

One need to use the embed engine for this

* Either using `file` option

```{embed, file = "style.css"}
"style.css"

or without quotes

style.css
unlink("style.css")


Try the parsermd package in your browser

Any scripts or data that you put into this service are public.

parsermd documentation built on Aug. 21, 2025, 5:27 p.m.