I'm currently using helpText
in my ui.R
file to display some static code content. However, because the output is not fixed width, the code looks like a mess. So how to display verbatim code; fixed width so it's easy to read?
Asked
Active
Viewed 2,029 times
2 Answers
2
I'm not sure I understand the problem, but the first solution would be renderVerbatim
. If that doesn't cut it, you could look at ShinyAce, though that may be overkill for what you need; if does have nice features like syntax highlighting for R, though.

Jeff Allen
- 17,277
- 8
- 49
- 70
0
I believe this is highly related to a related Shiny question about rendering multiple lines of text at once:
Outputting multiple lines of text with renderText() in R shiny
At least, the main answer there is one way to solve this problem.

Community
- 1
- 1

Paul 'Joey' McMurdie
- 7,295
- 5
- 37
- 41