title: Is it possible to have fixed width verbatimTextOutput and have texts change lines in Shiny?
body: <p>I have a simple app that uses <code>verbatimTextOutput</code> to display some texts. I am wondering if it is possible to have the width of <code>verbatimTextOutput</code> to be fixed and have the text output change lines?</p>
  
  <p>Please see this example (<a href="https://yuchenw.shinyapps.io/verbatimtext_bookmark/" rel="nofollow noreferrer">https://yuchenw.shinyapps.io/verbatimtext_bookmark/</a>). I also attached the code below.</p>
  
  <p>As the attached screenshot shows, when the string is very long, the <code>verbatimTextOutput</code> would not show all the text. Instead, the <code>verbatimTextOutput</code> would show a scroll bar at the bottom.</p>
  
  <p><a href="https://i.stack.imgur.com/WGmUB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WGmUB.png" alt="enter image description here"></a></p>
  
  <p>However, I hope there will be no scroll bar at the bottom of the <code>verbatimTextOutput</code>. I also need that when the texts are long, change lines to fit in the <code>verbatimTextOutput</code>. Taking the following as an example, which is by clicking the bookmark button. We can see that this lengthy URL change lines, and there is no scroll bar at the bottom of the output. If the bookmark button can do that, I hope I can also make the <code>verbatimTextOutput</code> show similar characteristics and appearance of the bookmark. </p>
  
  <p>Please let me know if you have any questions.</p>
  
  <p><a href="https://i.stack.imgur.com/3xV2A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3xV2A.png" alt="enter image description here"></a></p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>library(shiny)
  
  
  ui &lt;- function(request){
    fluidPage(
      column(
        width = 6,
        textInput(inputId = "txt", label = "Type in some texts",
                  value = paste0(rep(letters, 10), collapse = "")),
        strong("Show the texts"),
        verbatimTextOutput("txt_out"),
        br(),
        bookmarkButton()
      )
    )
  }
  server &lt;- function(input, output, session){
    output$txt_out &lt;- renderText({
      input$txt
    })
  }
  enableBookmarking("url")
  shinyApp(ui, server)
  </code></pre>