The pre function adds a maximum height and scroll bar to the standard <pre> element.

pre(...)

Arguments

...

Text, tag elements, or named arguments passed as HTML attributes to the tag.

See also

Other components: alert(), badge(), blockquote(), card(), collapsePane(), d1(), dropdown(), img(), jumbotron(), modal(), navContent(), popover(), toast()

Examples

### Simple example pre( "shinyApp(", " ui = container(", " columns(", " column(", " ", " )", " )", " )", " server = function(input, output) {", " ", " }", ")" )
#> <pre class="pre-scrollable"> #> shinyApp( #> ui = container( #> columns( #> column( #> #> ) #> ) #> ) #> server = function(input, output) { #> #> } #> ) #> </pre>