Make scrollbar in RMarkdown code blocks (view html)

I am doing an RMarkdown document using RStudio and knitr. I want my code snippets to print without wrapping text in the html file I am creating. Is there an option that I am missing that stops text wrapping? So far, I have only asked questions about how to remove scrollbars, making me think that maybe something has changed recently. (RStudio Version 0.99.892, R Version 3.2.2) Thank you!

A simple RMarkdown document example. (Default Settings Section):

---
title: "Stop looking bad RMarkdown!"
output: html_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

#### I want this to print without text wrapping:  

```{r}
x <- matrix(nrow = 3, ncol = 20, data = 1)
x
```

If you run this, you will see that the matrix x is split into two rows. I want this to be only one line you need to scroll to see all this.

+4
1

:

---
title: "Stop looking bad RMarkdown!"
output: html_document
---

<style>
pre code, pre, code {
  white-space: pre !important;
  overflow-x: scroll !important;
  word-break: keep-all !important;
  word-wrap: initial !important;
}
</style>

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
options(width=200)
```

#### I want this to print without text wrapping:

```{r }
x <- matrix(nrow = 3, ncol = 20, data = 1)
x
```

, R markdown <style> :

```{css}
pre code, pre, code {
  white-space: pre !important;
  overflow-x: scroll !important;
  word-break: keep-all !important;
  word-wrap: initial !important;
}
```
+7

Source: https://habr.com/ru/post/1649084/


All Articles